PATCH
/
v1
/
users
curl --request PATCH \
  --url https://platform.thena.ai/v1/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "name": "John Doe",
  "avatarUrl": "https://example.com/avatar.png"
}'
{
  "id": "<string>",
  "name": "<string>",
  "email": "<string>",
  "userType": "<string>",
  "status": "<string>",
  "isActive": true,
  "lastLoginAt": "<string>",
  "avatarUrl": "<string>",
  "timezone": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Body

application/json
name
string

The name of the user

Example:

"John Doe"

avatarUrl
string

The avatar url of the user

Example:

"https://example.com/avatar.png"

Response

200
application/json
Operation successful
id
string
required

The id of the time off

name
string
required

The name of the user

email
string
required

The email of the user

userType
string
required

The user type of the user

status
string
required

The status of the user

isActive
boolean
required

The is active of the user

lastLoginAt
string
required

The last login date of the user

avatarUrl
string
required

The avatar url of the user

timezone
string
required

The timezone of the user

createdAt
string
required

The created date of the time off

updatedAt
string
required

The updated date of the time off