Skip to main content
PUT
/
api
/
v1
/
accounts
/
{account_id}
/
users
/
{user_id}
/
profile
Update user profile
curl --request PUT \
  --url http://localhost:9001/api/v1/accounts/{account_id}/users/{user_id}/profile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "John Doe"
}
'
{
  "user": {
    "id": "user-abc123-v1",
    "email": "user@example.com",
    "name": "John Doe",
    "profile_pic_url": "https://example.com/avatar.jpg",
    "status": "ACTIVE",
    "is_verified": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "account_id": "acct-xyz789-v1"
}

Authorizations

Authorization
string
header
required

JWT token from Auth0

Path Parameters

account_id
string
required

Account's external ID (format: acct-xxx-v1)

Example:

"acct-xyz789-v1"

user_id
string
required

User's external ID (format: user-xxx-v1)

Example:

"user-abc123-v1"

Body

application/json
name
string
required

User's display name

Minimum string length: 1
Example:

"John Doe"

Response

Profile updated successfully

user
object
account_id
string

Account external ID

Example:

"acct-xyz789-v1"