Skip to main content
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": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.traza.com.au/llms.txt

Use this file to discover all available pages before exploring further.

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