Skip to main content

Answer the decision request named by the `requestId` query parameter

PATCH 

/api/projects/:id/tasks/:taskId/decision-request

Answer the decision request named by the requestId query parameter. Exactly one of chosenOptionIndex (an in-range index into the request's own options) or a non-empty free-text answer must be given — the effective answer is the chosen option's label, or the free text. Addressing by explicit id (not "the task's latest request") keeps a stale retry idempotent: it resolves the exact request it named and can never hit a newer one that opened since. Open-guarded: answering an already-terminal request is a no-op that returns the existing (resolved) row rather than erroring. Requires tasks.update.any. Records one auditCritical entry (metadata only — never the answer body) on the transition that actually resolves it.

Request

Responses

Successful response