v1

latestOpenAPI 3.1.02026-07-247328324.6 KB
Core resources

Update a user

patch/users/{id}

Path parameters

idstring required

An object id with prefix

Example:user_0123456789ABCDEFGHIJKLMNOPq

An object id with prefix

Headers

if-matchstring date-time required

ETag value for Optimistic Concurrency Control (OCC). Should contain the last known updated_at timestamp in ISO 8601 format.

Example:2024-01-15T10:30:00Z

ETag value for Optimistic Concurrency Control (OCC). Should contain the last known updated_at timestamp in ISO 8601 format.

Request body

namestring nullable

Non-empty text string

given_namestring nullable

Non-empty text string

family_namestring nullable

Non-empty text string

picturestring uri nullable

HTTP(S) URL

emailstring email nullable

An email address

zoneinfostring nullable

IANA timezone identifier

localestring nullable

BCP 47 locale

phone_numberstring nullable

E.164 phone number

Example request

{
  "picture": "https://www.acme.com",
  "email": "email@domain.com",
  "zoneinfo": "America/New_York",
  "locale": "en-US",
  "phone_number": "+14155551234"
}

Response

Successful operation

namestring

Non-empty text string

given_namestring

Non-empty text string

family_namestring

Non-empty text string

picturestring uri

HTTP(S) URL

emailstring email

An email address

zoneinfostring

IANA timezone identifier

localestring

BCP 47 locale

phone_numberstring

E.164 phone number

email_verifiedboolean

A boolean value

phone_number_verifiedboolean

A boolean value

enabledboolean required

A boolean value

idstring required

An object id with prefix

created_atstring date-time required

Creation date and time

created_bystring required

ID of the user that created this object

updated_atstring date-time required

Last update date and time

updated_bystring required

ID of the user that last updated this object

Example response

{
  "picture": "https://www.acme.com",
  "email": "email@domain.com",
  "zoneinfo": "America/New_York",
  "locale": "en-US",
  "phone_number": "+14155551234",
  "id": "user_0123456789ABCDEFGHIJKLMNOPq",
  "created_at": "2024-01-15T10:30:00Z",
  "created_by": "user_0123456789ABCDEFGHIJKLMNOPq",
  "updated_at": "2024-01-15T10:30:00Z",
  "updated_by": "user_0123456789ABCDEFGHIJKLMNOPq"
}