Reject a task
Rejects a pending-approval task; requires a reason.
Authentication
AuthorizationBearer
WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.
Path parameters
projectId
runId
taskId
Request
This endpoint expects an object.
reason
The rejection reason (required).
Response
The rejection result and task state.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error