Reject a pending decision
POST /api/v1/decisions/{decision_id}/reject
POST
/api/v1/decisions/{decision_id}/reject
Rejects a pending decision with a required reason and emits a decision.rejected event.
Authorizations
Parameters
Path Parameters
decision_id
required
The decision UUID to reject
string
The decision UUID to reject
Request Body required
Request body for rejecting a decision.
Attributes: rejection_reason: Required reason explaining why the decision was rejected.
object
rejection_reason
required
string
Responses
200
Successful Response
Response for approve/reject decision actions.
Attributes: decision_id: UUID of the affected decision. status: New status of the decision. action: The action taken (‘approved’ or ‘rejected’). approved_by: User ID who performed the action. rejection_reason: Reason for rejection, if applicable. timestamp: When the action was performed.
422
Validation Error
object
detail
Array<object>
object
ctx
object
input
loc
required
Array
msg
required
string
type
required
string