Read the order a timer on a task starts on
curl --request GET \ --url https://example.com/api/v1/timer/task-order/example \ --header 'Authorization: Bearer <token>'Deduces the order a timer on the task starts on, as the app’s time dialog does. It is the project’s default order when that order is linked to the task’s project; otherwise the one order linked to the task’s project, when exactly one is; with none linked, the project’s default order itself, unless the workspace requires orders to be linked to the task’s project and the default is linked only to other projects. order is null when several orders are linked and the default is not one of them, or when there is no order to pick; linkedOrderCount says whether none or several are linked. Only an order the caller can log time to counts. Requires the time.track_own permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Task identifier (CUID2).
Task identifier (CUID2).
Responses
Section titled “Responses”The order and how many orders are linked.
object
The order a timer started on a task would log to.
object
How many orders linked to the task’s project (a subtask also counts the projects of its parent tasks) the caller can log time to. With a null order, 0 means none are linked and more than 1 means several are, none of them the default.
The order a timer on the task starts on, with the activity types the caller may pick, their default first. It is the project’s default order when that order is linked to the task’s project; otherwise the one order linked to the task’s project, when exactly one is; with none linked, the project’s default order itself, unless the workspace requires orders to be linked to the task’s project and the default is linked only to other projects. Null when several orders are linked and the default is not one of them, or when there is no order to pick. Only an order the caller can log time to counts.
A trackable order option for timer pickers.
object
Activity types on the order, the caller’s default first: linked to one of the caller’s roles, fewest linked roles first. Types restricted to other roles are left out unless the caller holds time.edit_team.
object
"No client" when the order has no client.
How the picker shows the order: <code> · <name>, or its name when it has no code.
Example generated
{ "data": { "linkedOrderCount": 1, "order": { "activityTypes": [ { "id": "example", "name": "example" } ], "clientName": "example", "id": "example", "name": "example" } }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}The task is missing, in a Personal project or outside the caller’s reach. The answer is the same in every case.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC