Api
Set own preferences
Authorization
SubscriberEnv SubscriberHash SubscriberId X-Chimely-Environment<token>
In: header
X-Chimely-Subscriber-Hash<token>
Optional when the environment has require_subscriber_hash = false.
In: header
X-Chimely-Subscriber<token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Partial upsert — listed (category, channel) pairs are written; unlisted pairs are untouched. Setting enabled=true deletes the explicit row (absence means enabled).
Response Body
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/inbox/preferences" \ -H "Content-Type: application/json" \ -d '{ "preferences": [ { "category": "string", "channel": "in_app", "enabled": true } ] }'{
"preferences": [
{
"category": "string",
"channel": "in_app",
"enabled": true
}
]
}{
"error": {
"code": "invalid_request",
"message": "string"
}
}{
"error": {
"code": "invalid_request",
"message": "string"
}
}