Time entries

Correct a time entry

View as Markdown

PATCHhttps://paysuitett.com/api/v1/time-entries/{id}

Changes an entry's description, billable flag, times or project. A corrected entry counts as one block from start to end. Send only what changes.

Access. A personal key its holder's own unapproved entries. A master key anyone's, approved time too. Time in a pay run is never changed.

Path parameters

idstring · uuidrequired
The entry's ID.

Body

A JSON object. Every field is optional.

descriptionstring
What the work is, up to 2,000 characters.
billableboolean
Billable to the client. Defaults to true.
startstring · date-time
New start, ISO 8601.
endstring · date-time
New end, ISO 8601.
task_idstring · uuid
File the time under this task. Takes precedence over the fields below.
project_idstring · uuid
The project, by ID. With `task` (a task name) or, for a project with one task, alone.
projectstring
The project, by its exact name (ignoring case). A name nobody has yet is added on the spot only when `client` is sent too, so a typo doesn't make a project.
clientstring
The client, by name. Only used with `project` to add a new project (and the client, if new).
taskstring
A task name in the project: found, or added if it doesn't exist. Not needed when the project has one task.

Response

200 with a JSON body, as in the example.

  • A master key correcting approved time rebuilds its payroll hours, so payroll sees the change.