Update profile

Updates the currently authenticated user by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

PATCH/v3/me
JWT

Request Body Schema

PropertyTypeDescriptionConstraints
firstNamestringFirst name of the user.min: 1, max: 256
lastNamestringLast name of the user.min: 0, max: 256
emailstringEmail address of the user.format: email
googleSsoEnabledbooleanEnable or disable Google SSO.
twoFactorEnabledbooleanEnable or disable two factor authentication.
twoFactorCodestringTwo factor code generated by Authenticator app.min: 6, max: 6

Request Example

{
  "firstName": "string",
  "lastName": "string",
  "email": "user@example.com",
  "googleSsoEnabled": true,
  "twoFactorEnabled": true,
  "twoFactorCode": "string"
}
Triggers webhook: user.updated
POST <your-webhook-url>
{
  "event": "user.updated",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "firstName": "string",
    "lastName": "string",
    "email": "string",
    "role": "string",
    "twoFactorEnabled": true,
    "googleSsoEnabled": true,
    "lastLoginAt": "2019-08-24T14:15:22Z",
    "company": "string"
  },
  "triggeredAt": "string"
}

Responses

200 OK
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "name": "string",
  "firstName": "string",
  "lastName": "string",
  "email": "string",
  "role": "string",
  "twoFactorEnabled": true,
  "googleSsoEnabled": true,
  "lastLoginAt": "2019-08-24T14:15:22Z",
  "company": "string"
}