Skip to main content

Create a timesheet

POST 

/api/timesheets

Required permissions:

  • timetracking.view: allows to create resources.

Here the dedicated support page.

Request

Header Parameters

    Wethod-Company stringrequired

    The company you want to interact with

    Wethod-Version stringrequired

    The API version you want to use

Body

    date daterequired

    The date of the timesheet (must be a Monday).

    day stringrequired

    The day of the week (mon, tue, wed, thu, fri, sat, sun).

    hours floatrequired

    The number of hours worked.

    notes string

    Optional notes for the timesheet.

    project_id integerrequired

    The ID of the project.

    person_id integerrequired

    The ID of the person.

Responses

Returns the created 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...