Skip to main content

Update a timesheet

PATCH 

/api/timesheets/{id}

Required permissions:

  • timetracking.view: allows to update resources.

Here the dedicated support page.

Request

Path Parameters

    id integerrequired

    The ID of the timesheet to update

Header Parameters

    Wethod-Company stringrequired

    The company you want to interact with

    Wethod-Version stringrequired

    The API version you want to use

Body

    id integer

    The ID of the timesheet to update

    hours float

    The hours of the timesheet

    notes string

    Notes of the timesheet

    mode string

    Possible values: [DAILY, WEEKLY]

    Mode of the timesheet (DAILY, WEEKLY)

Responses

Returns the updated timesheet.

Schema

    id integerrequired

    Possible values: >= 1

    The unique identifier of the resource

    created_at date-timerequired

    The date and time when the resource was created

    updated_at date-timerequired

    The date and time when the resource was last updated

    date daterequired

    The date of the timesheet

    hours floatrequired

    The daily hours of the timesheet

    notes string

    Notes of the timesheet

    mode stringrequired

    The mode of the timesheet

    project_id integerrequired

    Possible values: >= 1

    ID of the project related to the timesheet

    person_id integerrequired

    Possible values: >= 1

    ID of the person related to the timesheet

    deleted_at date-time
Loading...