Skip to main content
PATCH
/
users
/
{userId}
/
preferences
Update User Preferences
curl --request PATCH \
  --url http://localhost:3000/api/users/{userId}/preferences \
  --header 'Content-Type: application/json' \
  --data '
{
  "path": [
    "<string>"
  ],
  "value": "<unknown>"
}
'
{
  "success": true,
  "updatedPreferences": {}
}

Path Parameters

userId
string
required

The ID of the user

Body

application/json
path
string[]
required

Path to the nested preference property

value
any
required

The new value for the preference

Response

Preferences updated successfully

success
boolean
updatedPreferences
object