Approval Operation Unknown

approval-operation-unknown · 422

The approved call names an operation the API no longer runs, so nothing ran, though the approval stays approved.

It doesn't come back as an error response. Approving answers 200 with the approval, whose execution is failed and whose error holds only this type, its title, detail and operation. detail says to deny it, but an approved approval can't be denied: it answers approval-not-pending.

Besides the members every error carries, this type adds operation.

Common causes

  • The call was held before an update of the API dropped its operation, and approved after.

How to fix the call

  • Send the original call again, so it is held, or runs, under an operation the API still knows.
  • Tell the user the approved change didn't happen, quoting operation.

Example

json
{
  "type": "approval-operation-unknown",
  "title": "Approval Operation Unknown",
  "detail": "Operation 'environment.clone' is no longer supported, so this approval cannot be executed. Deny it and issue the call again.",
  "operation": "environment.clone"
}