last_owner
The change would leave the org with no active owner: demoting or removing the only owner, or the only owner leaving.
HTTP 409 · invalid_request_error · not retryable
What happened
Section titled “What happened”The change would leave the org with no active owner: demoting or removing the only owner, or the only owner leaving.
What to do
Section titled “What to do”Make someone else an owner first (PATCH /v1/org/members/{id} with
{"role":"owner"}), then make the change.
Example
Section titled “Example”{ "error": { "type": "invalid_request_error", "code": "last_owner", "message": "Acme needs at least one owner. Make someone else an owner first.", "param": null, "request_id": "req_01j9zr3m5k8q2w7x4t6v0b1c9d", "doc_url": "https://docs.deedglass.com/errors/last_owner" }}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 === "last_owner" |
Python (deedglass) |
deedglass.InvalidRequestError with .code == "last_owner" |