Log time on ticket
POST/tickets/{ticketId}/time-entries
Scope write:timeChanges data
Requires the write:time scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
ticketIdRequiredTicket number.
Idempotency-KeyOptional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.
Request body
minutesRequiredNumber of minutes.
descriptionDescription of the time entry.
isBillableWhether the time is billable to the client.
entryDateDate of the time entry, ISO 8601 date (YYYY-MM-DD); defaults to today.
requestIdRetry key you choose (1 to 200 characters). Sending the same key again returns the entry already made instead of adding a second one.
Response 200
dataRequiredThe result of the action.
data.okRequiredTrue when the action was carried out (or, with dryRun, previewed).
data.messageRequiredPlain-words sentence describing what happened.
data.entityRequiredThe record the action touched, or null when it did not touch one.
data.entity.typeRequiredKind of record that was acted on, when there is one.
data.entity.idRequiredId of that record, when there is one.
data.entity.hrefRequiredAbsolute portal link to that record, when there is one.
data.outputRequiredAnything else the action returned (may be empty).
Errors (400, 401, 402, 403, 404, 429)
400The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.401Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.402This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).403The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404Not found for this key (a record in another organization is also a 404, never a 403).429Rate limit exceeded; wait Retry-After seconds.