Submit a decision for a task

Submit a decision for a pending task.

Validates that option_id matches one of the task's options, persists
the decision, marks the task completed, and signals the waiting
Temporal workflow via complete_task.

The task must belong to the authenticated traveler (cross-traveler
submissions return 404). Submitting a decision for a task that is
already in a terminal state returns 409.

If the Temporal cluster is not configured, the decision is still
persisted and a 201 is returned with a warning log entry. If the
workflow has already completed/expired on the Temporal side, the decision
is persisted and 201 is also returned (workflow-gone is informational).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required
Body Params

Request body for POST /v1/human-tasks/{id}/decisions.

string
required
length ≥ 1

The id of the chosen option from the task's options list.

Responses

401

Authentication required

404

Task not found

409

Task already decided or workflow already completed

422

Unknown option id

503

Service unavailable

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json