Skip to main content
PUT
Replace the roles assigned to a user

Authorizations

Authorization
string
header
required

The primary authentication method for the Mezmo API.

Pass the key in the Authorization header in the format Token <ACCESS TOKEN>. For example:

This key is used for all APIs with the exception of ingest.

Path Parameters

user_id
string
required

The unique identifier of the user to update

Maximum string length: 24
Pattern: ^[a-f\d]{24}$

Body

application/json
roles
string[]
required
Maximum array length: 50

The unique identifier of the role to grant to the user

Maximum string length: 24
permissions
Permission list to be specified in responses body · object

Permissions represent the set of resources a particular entity has access to.

Example:

Response

Response format containing the updated user, in addition to the standard metadata object.

Response format containing the updated user, in addition to the standard metadata object.

meta
object
required

Contains additional contextual information about the api response.

data
User · object
required

Represents an individual human and is used in registration, authentication and authorization.