Document has a newer draft
What the StudioProposalReopenConflict error (409 Conflict) means, the fields it carries, and the endpoints that return it.
The API answers 409 Conflict with this problem. Its type is https://lingo.dev/docs/api/errors/studio-proposal-reopen-conflict. See Errors and status codes for the shape every error shares.
You have newer open edits to <type> / <id>. Discard them, or publish the proposal that holds them, then reopen this one. Edits in a sent proposal can be discarded once it is returned to draft.
Fields #
Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.
| Field | Type |
|---|---|
id | string |
document | object |
document.scopeKey | string |
document.type | string |
document.id | string |
Example #
json
{
"detail": "You have newer open edits to <type> / <id>. Discard them, or publish the proposal that holds them, then reopen this one. Edits in a sent proposal can be discarded once it is returned to draft.",
"id": "<id>",
"document": {
"scopeKey": "<scopeKey>",
"type": "<type>",
"id": "<id>"
},
"type": "https://lingo.dev/docs/api/errors/studio-proposal-reopen-conflict",
"status": 409,
"title": "Document has a newer draft"
}