User Preferences
Update or Create user preferences for a specific subscription topic
Changed onSets a user's opt-in status and channel choices for one subscription topic, overriding the tenant default for that topic only.
put/users/{user_id}/preferences/{topic_id}
Request
- Base URLhttps://api.courier.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
user_idstring required
A unique identifier associated with the user whose preferences you wish to retrieve.
topic_idstring required
A unique identifier associated with a subscription topic.
Query parameters
tenant_idstring nullable
Update the preferences of a user for this specific tenant context.
Request body
Response
Example response
{
"message": "success"
}Changes
- breaking
added to the
/request propertyallOflist - breaking
removed the enum value
OPTED_INof the request property/ - breaking
removed the enum value
OPTED_OUTof the request property/ - breaking
removed the enum value
REQUIREDof the request property/ - breaking
the
/request property type changed fromstringto no type
- breaking
- info
api tag
User Preferencesadded - info
api tag
UsersPreferencesremoved
- info