Model chain incomplete

What the ModelChainIncomplete error (422 Unprocessable Content) means, the fields it carries, and the endpoints that return it.

The API answers 422 Unprocessable Content with this problem. Its type is https://lingo.dev/docs/api/errors/model-chain-incomplete. See Errors and status codes for the shape every error shares.

Cannot reorder the <sourceLocale>→<targetLocale> chain. The request must list every model config in that chain exactly once, and nothing outside it. Read the chain first and send back the ids it holds.

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.

FieldType
sourceLocalestring
targetLocalestring

Example #

json
{
  "detail": "Cannot reorder the <sourceLocale>→<targetLocale> chain. The request must list every model config in that chain exactly once, and nothing outside it. Read the chain first and send back the ids it holds.",
  "sourceLocale": "<sourceLocale>",
  "targetLocale": "<targetLocale>",
  "type": "https://lingo.dev/docs/api/errors/model-chain-incomplete",
  "status": 422,
  "title": "Model chain incomplete"
}

Returned by #

  • PUT /v2/engines/{engineId}/model-configs/order