Proposal cannot do that now
What the StudioProposalTransitionRefused 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-transition-refused. See Errors and status codes for the shape every error shares.
This proposal is in Draft, so it cannot be sent now. Reload it to see where it stands.
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 |
current | "draft" | "waiting" | "publishing" | "published" | "needs_attention" | "closed" |
action | "send" | "publish" | "resume" | "close" | "reopen" |
Example #
json
{
"detail": "This proposal is in Draft, so it cannot be sent now. Reload it to see where it stands.",
"id": "<id>",
"current": "draft",
"action": "send",
"type": "https://lingo.dev/docs/api/errors/studio-proposal-transition-refused",
"status": 409,
"title": "Proposal cannot do that now"
}