Decide a stage
Approving the last stage approves the request; rejecting any stage rejects it.
POST
/api/v1/approvals/{id}/decisionsAuthorization
AuthorizationOAuth2 access token · headerrequiredAuthorization-code grant with PKCE. Clients are public and hold no secret. Discovery is published at /.well-known/oauth-authorization-server/api/auth.
Scopes:
api.accessPath parameters
idstringrequiredAn approval request's id
min length 1 · max length 255
Header parameters
Idempotency-KeystringrequiredReplays the first answer for a repeated request
min length 8 · max length 128
Request body
requiredapplication/jsoncommentstringmax length 4000 · default: ""
decisionstringrequiredAllowed:
approverejectstageintegerrequiredmin 1 · max 3
Responses
200
Where the request stands after the decision
activeStageintegerrequiredmin -9007199254740991 · max 9007199254740991
idstringrequiredmin length 1 · max length 255
stateApprovalStaterequiredAllowed:
pendingapprovedrejectedwithdrawn400
The request body, query or parameters were refused
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring401
The access token is missing, invalid or revoked
errorstringrequired403
The tenant's module is off, or the token's scope or the member's role does not permit the action
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring404
No such record, or none the caller may read
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring409
The operation conflicts with the current state
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring413
The request exceeds the route's body limit
errorstringrequired500
An unexpected failure
errorstringrequired