approval_decided
A person tried to countersign or deny an approval that already has a final decision: someone else approved or denied it first, or it was cancelled.
HTTP 409 · invalid_request_error · not retryable
What happened
Section titled “What happened”A person tried to countersign or deny an approval that already has a final decision: someone else approved or denied it first, or it was cancelled. The first final decision wins under a row lock; nothing is decided twice.
What to do
Section titled “What to do”Nothing to do. The message names the outcome, who decided and when; Console › Approvals has the full record and the deed.
Example
Section titled “Example”{ "error": { "type": "invalid_request_error", "code": "approval_decided", "message": "This approval was already decided: approved by Priya Raman at 10:14 IST.", "param": null, "request_id": "req_01j9zr3m5k8q2w7x4t6v0b1c9d", "doc_url": "https://docs.deedglass.com/errors/approval_decided" }}The message is for a person and can get more exact over time: branch on type and code, never on the message.
In the SDKs
Section titled “In the SDKs”| SDK | Raised as |
|---|---|
TypeScript (@deedglass/sdk) |
InvalidRequestError with code === "approval_decided" |
Python (deedglass) |
deedglass.InvalidRequestError with .code == "approval_decided" |