Default role cannot be changed
The API answers 409 Conflict with this problem. Its type is https://lingo.dev/docs/api/errors/system-role-immutable. See Errors and status codes for the shape every error shares.
Role <id> is a platform-managed default shared across all organizations and cannot be changed or deleted. Create a custom role in your organization instead.
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 |
Example#
json
{
"detail": "Role <id> is a platform-managed default shared across all organizations and cannot be changed or deleted. Create a custom role in your organization instead.",
"id": "<id>",
"type": "https://lingo.dev/docs/api/errors/system-role-immutable",
"status": 409,
"title": "Default role cannot be changed"
}Returned by#
DELETE /v2/roles/{id}PATCH /v2/roles/{id}