Update User

Update a User by ID

Required scope | users:write

The email and password fields cannot be updated using this endpoint

Path parameters

site_idstringRequiredformat: "objectid"
Unique identifier for a Site
user_idstringRequiredformat: "objectid"
Unique identifier for a User

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
dataobjectOptional
accessGroupslist of stringsOptional

An array of access group slugs. Access groups are assigned to the user as type admin and the user remains in the group until removed.

Response

Request was successful
idstring or nullformat: "objectid"
Unique identifier for the User
isEmailVerifiedboolean or null
Shows whether the user has verified their email address
lastUpdatedstring or nullformat: "date-time"
The timestamp the user was updated
invitedOnstring or nullformat: "date-time"
The timestamp the user was invited
createdOnstring or nullformat: "date-time"
The timestamp the user was created
lastLoginstring or nullformat: "date-time"
The timestamp the user was logged in
statusenum or null
The status of the user
Allowed values:
accessGroupslist of objects or null
Access groups the user belongs to
dataobject or null
An object containing the User's basic info and custom fields

Errors