SCIM key role invalid

What the ScimKeyRoleInvalid 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/scim-key-role-invalid. See Errors and status codes for the shape every error shares.

A SCIM key needs a role. Give the key a role other than Owner that grants org:manage_team.

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"noRole" | "owner" | "lacksManageTeam"
roleIdstring

Example #

json
{
  "detail": "A SCIM key needs a role. Give the key a role other than Owner that grants org:manage_team.",
  "reason": "noRole",
  "roleId": "<roleId>",
  "type": "https://lingo.dev/docs/api/errors/scim-key-role-invalid",
  "status": 422,
  "title": "SCIM key role invalid"
}

Returned by #

  • PATCH /v2/service-api-keys/{id}
  • POST /v2/organizations/{orgId}/service-api-keys/scim