Users

Users and roles.

All paths are relative to the base path /api/v1 (same origin as the UI). Authentication, roles, pagination and the error format are described in the overview; the types are on the page Data types.

OperationRequestPermission
List usersGET /usersusers:manage (admin)
Change role (sets roleSource=manual) or disable a userPATCH /users/{id}users:manage (admin)

List users

GET /api/v1/users

Operation listUsers. Permission users:manage (lowest role: admin).

Responses

StatusDescriptionContent typeType
200Usersapplication/jsonUserList
403Missing permission (code forbidden) or CSRF failure (code csrf_failed)application/problem+jsonProblem

Change role (sets roleSource=manual) or disable a user

PATCH /api/v1/users/{id}

Operation updateUser. Permission users:manage (lowest role: admin).

Parameters

NameInTypeRequiredDescription
idpathstringyesFormat uuid.
X-CSRF-TokenheaderstringnoRequired for cookie-authenticated mutating requests (value of cookie myriarch_csrf).

Request body

Content type application/json, required. Type: UpdateUserRequest.

{
  "role": "viewer",
  "disabled": false
}

Responses

StatusDescriptionContent typeType
200Updated userapplication/jsonUser
404Not found (code not_found)application/problem+jsonProblem
412Invalid state transition or precondition (code precondition_failed)application/problem+jsonProblem
422Validation failed (code validation_failed, details in issues)application/problem+jsonProblem