curl --request PATCH \
--url https://apix.spotzee.com/api/client/subscriptions/{subscriptionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"is_public": true
}
'{
"id": 7,
"project_id": 42,
"name": "Weekly newsletter",
"channel": "email",
"is_public": true,
"created_at": "<string>",
"updated_at": "<string>"
}Updates the name and visibility of a subscription type. Channel cannot be changed.
curl --request PATCH \
--url https://apix.spotzee.com/api/client/subscriptions/{subscriptionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"is_public": true
}
'{
"id": 7,
"project_id": 42,
"name": "Weekly newsletter",
"channel": "email",
"is_public": true,
"created_at": "<string>",
"updated_at": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt
Use this file to discover all available pages before exploring further.
Project-scoped secret API key (sk_…). Pass in the Authorization: Bearer <key> header. Grants access to the project the key was issued for.
Numeric subscription-type identifier.
7
The updated subscription type.
A named opt-in channel a contact can subscribe to. Used to drive sends and customer-facing preference centres. Distinct from a contact’s per-channel subscription state.
Numeric subscription-type identifier.
7
Identifier of the owning project.
42
Human-readable subscription-type name shown on preference centres.
"Weekly newsletter"
Delivery channel a subscription type covers.
email, text, push, webhook, in_app "email"
Whether this subscription type is shown on customer-facing preference centres.
Time the subscription type was created. ISO 8601.
Time the subscription type was last modified. ISO 8601.
Was this page helpful?