Approve a task

View as Markdown

Approves a pending-approval task, materializing any drafts; partial materialization returns 207.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

projectIdstringRequired
runIdstringRequired
taskIdstringRequired

Response

The approval result and task state.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error