Skip to main content
PATCH
Modify 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 email or ID of the user to update

Required string length: 2 - 128

Body

application/json

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

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

firstname
string

Name of user given to them upon birth.

Maximum string length: 50
Example:

"John"

lastname
string

Common family or surname of the user.

Maximum string length: 50
Example:

"Doe"

roles
string[]

A list of role identifiers or role names to assign to the user

Maximum array length: 50
Required string length: 2 - 128
permissions
Permission list to be specified in requests 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.