Reject a task

View as Markdown

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

projectIdstringRequired
runIdstringRequired
taskIdstringRequired

Request

This endpoint expects an object.
reasonstringRequired

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