Skip to main content
PATCH
/
api
/
v1
/
users
/
{user_id}
Update User Profile
curl --request PATCH \
  --url https://api.example.com/api/v1/users/{user_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "language": "<string>",
  "dietary": {},
  "favorite_brands": [
    "<unknown>"
  ]
}
'
{
  "user_id": "<string>",
  "language": "<string>",
  "dietary": {},
  "favorite_brands": [
    "<unknown>"
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

user_id
string
required

Body

application/json
language
string | null

Preferred language code (e.g. 'uk', 'en')

dietary
Dietary · object

Dietary preferences and restrictions (e.g. {"vegan": true})

favorite_brands
any[] | null

List of preferred brand names for personalized recommendations

Response

Successful Response

user_id
string
required

Unique user identifier (provided by the client application)

language
string | null

Preferred language code (e.g. 'uk', 'en')

dietary
Dietary · object

Dietary preferences and restrictions (e.g. {"vegan": true})

favorite_brands
any[] | null

List of preferred brand names for personalized recommendations