Timesheets

Update timesheet by ID

Changed on

Update a timesheet

put/timesheets/{id}

Request

  • Base URL
    https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage
  • URL
    https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/timesheets/{id}
  • Auth
    API key in header x-api-key

Path parameters

idstring required

Request body

user_idinteger required

Existing user id.

clock_in_titlestring required
clock_out_titlestring nullable
clock_in_method'automatic' | 'manual' required
clock_out_method'automatic' | 'manual' nullable
clock_in_timeinteger required

Unix timestamp.

clock_out_timeinteger nullable

Unix timestamp.

clock_in_notesstring nullable
clock_out_notesstring nullable
clock_in_locationstring
clock_out_locationstring
job_idinteger nullable

Existing job id.

subtask_idinteger nullable

Existing subtask id.

type'general' | 'job' nullable
is_historicalboolean nullable

Response

Successful response

errorboolean

false when the request succeeds.

responseobject

The updated record.

Changes

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property