Skip to content

upsertNotificationPreference

WRITE

Upsert notification preference.

POST /api/v1/account/upsertNotificationPreference
curl -X POST '<your-host>/api/v1/account/upsertNotificationPreference' \
  -H 'Authorization: Bearer <api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
    "topic": "string",
    "channel": "email",
    "enabled": true
  }'

Parameters

ParameterType
"email"

Input schema

schema
{
  "type": "object",
  "properties": {
    "topic": {
      "type": "string"
    },
    "channel": {
      "type": "string",
      "enum": [
        "email"
      ]
    },
    "enabled": {
      "type": "boolean"
    }
  },
  "required": [
    "topic",
    "channel",
    "enabled"
  ]
}