MBT Company
← All pages in this section

ROLE_REQUIRED

Status: 400 Bad Request

What it means

A user needs at least one role, and none was chosen.

What to do

Choose at least one role and save again.

Example of the answer

The API answers with this JSON (title and detail change with the situation and the language):

{
  "type": "https://docs.mbtcompany.eu/errors/role-required",
  "title": "Bad Request",
  "status": 400,
  "detail": "A user needs at least one role, and none was chosen.",
  "code": "ROLE_REQUIRED"
}