Update User

Updates the first or last name of an existing user.

PATCH/organizations/users/{user_id}

Updates a user.

Path Parameters

user_idstringrequired

User UUID.

Body application/json

first_namestring

First name.

last_namestring

Last name.

Response

OK

idstring<uuid>
emailstring
first_namestring
last_namestring
account_permissionsobject[]
Show account_permissions properties
account_idstring<uuid>
role_idstring
account_group_permissionsobject[]
Show account_group_permissions properties
account_group_idstring<uuid>
role_idstring
created_atstring<date-time>
updated_atstring<date-time>
Request
curl -X PATCH "https://api-sandbox.whitelabel.com/v1/organizations/users/<user_id>" \
  -H "Content-Type: application/json" \
  -H "PUBLIC-API-KEY: <PUBLIC-API-KEY>" \
  -H "PRIVATE-SECRET-KEY: <PRIVATE-SECRET-KEY>" \
  -d '{
  "first_name": "string",
  "last_name": "string"
}'
Response
{
  "id": "00000000-0000-0000-0000-000000000000",
  "email": "string",
  "first_name": "string",
  "last_name": "string",
  "account_permissions": [
    {
      "account_id": "00000000-0000-0000-0000-000000000000",
      "role_id": "string"
    }
  ],
  "account_group_permissions": [
    {
      "account_group_id": "00000000-0000-0000-0000-000000000000",
      "role_id": "string"
    }
  ],
  "created_at": "1970-01-01T00:00:00.000Z",
  "updated_at": "1970-01-01T00:00:00.000Z"
}