Skip to main content
PATCH
/
v1
/
user-preferences
/
{userId}
Update user preferences
curl --request PATCH \
  --url http://localhost:3001/v1/user-preferences/{userId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "fontSize": "<string>",
  "density": "<string>",
  "reducedMotion": true,
  "highContrast": true
}
'
{
  "id": "<string>",
  "organizationId": "<string>",
  "userId": "<string>",
  "fontSize": "<string>",
  "density": "<string>",
  "reducedMotion": true,
  "highContrast": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Headers

authorization
string
Minimum string length: 1
x-organization-id
string
Minimum string length: 1

Path Parameters

userId
string
required
Minimum string length: 1

Body

application/json
fontSize
string
Minimum string length: 1
density
string
Minimum string length: 1
reducedMotion
boolean
highContrast
boolean

Response

Default Response

id
string
required
organizationId
string
required
userId
string
required
fontSize
string
required
density
string
required
reducedMotion
boolean
required
highContrast
boolean
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required