v1
latestOpenAPI 3.0.12026-07-24501176.6 MBUpdate Subscription Details
post/customers/{userId}/subscriptions
Path parameters
userIdinteger required
Unique ID of the customer to add or update subscription details.
Headers
X-CAP-API-OAUTH-TOKENstring
Request body
Response
200
Example response
{
"scope": {
"scope": "USER",
"subScope": "NONE",
"setScope": true,
"setSubScope": true
},
"subscriptions": [
{
"channel": "EMAIL",
"priority": "BULK",
"type": "OPTOUT"
}
],
"campaignId": -1,
"communicationId": -1,
"reason": "Sample reason"
}