Role in use
The API answers 409 Conflict with this problem. Its type is https://lingo.dev/docs/api/errors/role-in-use. See Errors and status codes for the shape every error shares.
Role <id> is still assigned to 2 service API keys and cannot be deleted. Give those keys a different role or revoke them first.
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 |
apiKeys | number | "Infinity" | "-Infinity" | "NaN" |
Example#
json
{
"detail": "Role <id> is still assigned to 2 service API keys and cannot be deleted. Give those keys a different role or revoke them first.",
"id": "<id>",
"apiKeys": 2,
"type": "https://lingo.dev/docs/api/errors/role-in-use",
"status": 409,
"title": "Role in use"
}Returned by#
DELETE /v2/roles/{id}