Document has another draft
What the StudioProposalTakeOverConflict 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-take-over-conflict. See Errors and status codes for the shape every error shares.
This proposal cannot be taken over: you have unsent edits to <type> / <id>. Discard them first; if they are in a proposal you sent, return that proposal to draft so they can be discarded.
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": "This proposal cannot be taken over: you have unsent edits to <type> / <id>. Discard them first; if they are in a proposal you sent, return that proposal to draft so they can be discarded.",
"id": "<id>",
"document": {
"scopeKey": "<scopeKey>",
"type": "<type>",
"id": "<id>"
},
"type": "https://lingo.dev/docs/api/errors/studio-proposal-take-over-conflict",
"status": 409,
"title": "Document has another draft"
}