Create time entry

POST/api/v1/time-entries

Log a new time entry.

Operation ID: create_time_entry_api_v1_time_entries_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

entry_datestring · daterequired

Date the work was performed.

duration_minutesintegerrequired

Duration in minutes.

descriptionstring

Optional description.

person_namestring

Who performed the work.

customer_idstring

Customer worked for.

project_idstring

Project / job.

catalog_item_idstring

Service item to use as the invoice line.

billableboolean

Whether the time is billable.

rate_centsinteger

Billing rate per hour, in cents.

Responses

201Successful Response

idstringrequired
business_idstringrequired
entry_datestring · daterequired
duration_minutesintegerrequired
descriptionstring
person_namestring
customer_idstring
customer_namestring
project_idstring
project_namestring
catalog_item_idstring
billablebooleanrequired
rate_centsinteger
billable_amountinteger

Computed billable amount in cents.

statusstringrequired
invoice_idstring
is_activebooleanrequired
created_atstring · date-timerequired
updated_atstring · date-timerequired

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject