Invalid state for this operation
The envelope is not in a state that allows this action.
| Problem type | /problems/invalid-state |
|---|---|
| HTTP status | 409 |
| Emitted by | Signing page, REST API (/v1) |
| Title values | Invalid state for this operationThe language can no longer be changedThis signing link does not use a one-time code |
| Trigger |
REST API (/v1):
operation not valid for the envelope's state
|
What happened
The operation is valid in general but not for this envelope right now: sending an envelope that is already sent, editing recipients after sending, voiding a completed envelope, or deleting an envelope that is still out for signature. The response is HTTP 409.
What it means
Nothing changed. The envelope’s current status decides which operations are open; structural edits are draft-only, and sending is one-way.
What to do next
Read the envelope (GET /v1/documents/{id}) and branch on status. If you need to change a sent envelope’s content or recipients, void it and create a new one; the void reason is recorded in the audit trail. draft, voided, expired, completed, and rejected envelopes can be deleted (DELETE /v1/documents/{id}); a sent or partially_signed one must be voided first.
Problem body
Every error the API returns is an RFC 9457 problem document with media type
application/problem+json. The type member is the
stable identifier to switch on; docs_url is this page.
{
"type": "/problems/invalid-state",
"title": "The language can no longer be changed",
"status": 409,
"instance": "/v1/...",
"docs_url": "https://staging.signenvoy-docs-b4g.pages.dev/errors/invalid-state"
}