Chimely
Api

Set preferences for a subscriber (admin)

PUT
/v1/subscribers/{subscriber_id}/preferences

Authorization

ApiKeyBearer
AuthorizationBearer <token>

Environment-scoped management API key.

In: header

Path Parameters

subscriber_id*string

Customer-provided subscriber id (e.g. usr_42).

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/subscribers/string/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"
  }
}