Review decision invalid

What the LocalizationReviewInvalid 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/localization-review-invalid. See Errors and status codes for the shape every error shares.

Review units must be unique and decisions valid.

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
reason"submissionInvalid" | "takeoverIncomplete" | "unitNotReviewable" | "placeholdersChanged"
unitIdstring
unitKeystring
missingstring[]
unexpectedstring[]

Example #

json
{
  "detail": "Review units must be unique and decisions valid.",
  "reason": "submissionInvalid",
  "unitId": "<unitId>",
  "unitKey": "<unitKey>",
  "missing": [
    "<missing>"
  ],
  "unexpected": [
    "<unexpected>"
  ],
  "type": "https://lingo.dev/docs/api/errors/localization-review-invalid",
  "status": 422,
  "title": "Review decision invalid"
}

Returned by #

  • POST /v2/localization/documents/{documentId}/targets/{locale}/review/approve-all
  • POST /v2/localization/documents/{documentId}/targets/{locale}/review/decisions