Skip to the page

Approve, decline or withdraw a production shell ask

POST/v1/organisations/{id}/environments/{envId}/terminal/approvals/{aid}/{what}

Operation terminal.decideApproval · since 2026-11-05 · stable

Needs a session withwritescopeAnswers200 OK

The path takes deny, not decline.

Path parameters

idstring (uuid)required
The organisation id.
envIdstring (uuid)required
The environment id.
aidstringrequired
The approval id.
whatstringrequired
"approve", "deny" or "withdraw".

Body

None. Send no body, or an empty JSON object.

Errors

Every error is { "error", "message", "detail"? } (Errors and references). Besides the codes any route can answer.

POST/v1/organisations/{id}/environments/{envId}/terminal/approvals/{aid}/{what}
curl -X POST "https://api.rykloud.com/v1/organisations/$ORG_ID/environments/$ENV_ID/terminal/approvals/$APPROVAL_ID/$DECISION" \
  -H "Authorization: Bearer $RYKLOUD_TOKEN"