Hold a task for a person
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
Path parameters
Headers
Request
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.
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.
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 ids of the tasks that must be done before this one: those the caller can open.
Whether the caller may change it; null in a list.
Who is working on it now; null when nobody is, and once the lease ran out.
Why it is done (completed or not_planned); null while open.
YYYY-MM-DD, or null.
HH:MM (24-hour), or null.
The IANA time zone of due_time.
The items kept elsewhere it is linked to (a pull request, an issue, a thread), each with what its system last said.
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.
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.
Its number in its workspace (1, 2, 3, …), shown as T-<n>; null for a task written before tasks were numbered.
The task it is a sub-task of, read through that task’s own gate; null when it is no sub-task.
How many of its sub-tasks the caller can open are done, of how many.
