Skip to main content
PUT
/
auth
/
profile
Update user profile (authenticated)
curl --request PUT \
  --url http://localhost:3000/auth/profile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "timezone": "<string>",
  "name": "<string>",
  "job_title": "<string>",
  "currentPassword": "<string>",
  "newPassword": "<string>",
  "confirmPassword": "<string>"
}
'
{
  "statusCode": 123,
  "message": "OK",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "email": "jsmith@example.com",
    "name": "<string>",
    "job_title": "<string>",
    "avatar_url": "<string>",
    "timezone": "<string>",
    "status": "active",
    "role": "admin",
    "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "last_login": "2023-11-07T05:31:56Z",
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
timezone
string

User timezone (e.g., America/New_York, UTC+1).

Pattern: ^(?:[A-Za-z_]+(?:\/[A-Za-z0-9_\-]+)+|(?:UTC|GMT)(?:[+-](?:0?[0-9]|1[0-4])(?::?[0-5][0-9])?)?|[+-](?:0?[0-9]|1[0-4]):?[0-5][0-9])$
name
string
Required string length: 1 - 100
job_title
string | null
Maximum string length: 200
currentPassword
string

Required if changing password

Minimum string length: 6
newPassword
string

Required if changing password

Required string length: 8 - 128
confirmPassword
string

Must match newPassword

Required string length: 8 - 128

Response

Default Response

statusCode
number
message
string
default:OK
data
object