Skip to navigation

Hold a task for a person

Beta

Hold an open task for a person: say in one line what it waits for (a question, an approval, or that the work failed). A held task stays open but is not ready, and nobody can claim it until the hold is lifted; the tasks that wait on it keep waiting. Holding ends any claim on the task and tells its assignee and followers. Holding a task already held replaces its hold. Needs edit access. A credential acting as an agent or an automation holds only a task it holds the claim on, or that nobody does.

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

asset_idstringRequired
The task's asset id.

Headers

X-Athena-Session-CredentialstringOptional

Request

This endpoint expects an object.
reasonstringRequired<=500 characters

What the task waits for, in one line (at most 500 characters): the question, or what is needed. Everyone who can open the task reads it.

kindstring or nullOptional<=32 characters

What sort of wait it is, in one short lowercase word: needs_input (when left out), awaiting_approval, failed (the worker gave up; what waits on the task keeps waiting), or a word of your own.

workerstring or nullOptionalformat: "^[A-Za-z0-9._-]+$"1-64 characters

Your own name for the worker that is calling (1 to 64 letters, digits, -, _ or .), for when several workers share one API key. A claim made with a name is that worker’s: another worker of the same caller is refused the task while the claim is live, and only the same name renews it or gives it back. Left out, the call is the caller’s own, as from the app. The name is yours to choose and grants nothing.

Response

The task, held.
assigneeobject or null
Who it is for, or null for nobody.
blocked_bylist of strings

The ids of the tasks that must be done before this one: those the caller can open.

can_editboolean or null

Whether the caller may change it; null in a list.

claimobject or null

Who is working on it now; null when nobody is, and once the lease ran out.

completed_atdatetime or null
When it was marked done.
completed_by_refstring or null
Who marked it done.
completion_notestring or null
What the work produced, left when it was marked done.
completion_reasonenum or null

Why it is done (completed or not_planned); null while open.

Allowed values:
created_atdatetime or null
created_bystring or null
The user who created it.
descriptionstring or null
Markdown.
due_datestring or null

YYYY-MM-DD, or null.

due_timestring or null

HH:MM (24-hour), or null.

due_time_zonestring or null

The IANA time zone of due_time.

external_refslist of objects

The items kept elsewhere it is linked to (a pull request, an issue, a thread), each with what its system last said.

hidden_blockersinteger
How many more tasks it waits on that the caller can't open.
holdobject or null

Why it waits on a person; null when it doesn’t. A held task is not ready and can’t be claimed until the hold is lifted.

idstring
The task's asset id.
is_archivedboolean
Whether it is in the trash.
is_blockedboolean
Whether a task it waits on is still open, counting the ones the caller can't open.
is_readyboolean

Whether it can be worked on now: open, not in the trash, nobody working on it, not held for a person and waiting on no open task. It says nothing of who may take it: a task assigned to someone is theirs alone to claim.

labelslist of objects
numberinteger or null

Its number in its workspace (1, 2, 3, …), shown as T-<n>; null for a task written before tasks were numbered.

parentobject or null

The task it is a sub-task of, read through that task’s own gate; null when it is no sub-task.

priorityenum
Allowed values:
statusenum
Allowed values:
subtask_progressobject

How many of its sub-tasks the caller can open are done, of how many.

titlestring
updated_atdatetime or null
workspace_idstring

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
503
Service Unavailable Error