Audiences
AuthTokens
Brands
Inbound
Lists
Messages
Notifications
Profiles
Tenants
User Preferences
User Tenants
Tenants
Create Tenant Preferences
PUT
/
tenants
/
{tenant_id}
/
default_preferences
/
items
/
{topic_id}
Copy
Ask AI
curl --request PUT \
--url https://api.courier.com/tenants/{tenant_id}/default_preferences/items/{topic_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": "OPTED_IN",
"has_custom_routing": true,
"custom_routing": [
"inbox"
]
}'
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Id of the tenant to update the default preferences for.
Id fo the susbcription topic you want to have a default preference for.
Body
application/json
Copy
Ask AI
curl --request PUT \
--url https://api.courier.com/tenants/{tenant_id}/default_preferences/items/{topic_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": "OPTED_IN",
"has_custom_routing": true,
"custom_routing": [
"inbox"
]
}'
Assistant
Responses are generated using AI and may contain mistakes.