Update a notification subscription
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/utilities/notifications/subscriptions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"enabled": true
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({enabled: true})
};
fetch('https://beta.creatorcore.co/api/v2/utilities/notifications/subscriptions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/utilities/notifications/subscriptions/{id}"
payload = { "enabled": True }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"success": true,
"subscription": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"topic": "<string>",
"destinationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Notification subscriptions
Update a notification subscription
Enables or disables a topic subscription. Re-enabling a webhook subscription that can match payout events requires permission to read payouts; otherwise 403. Signed-in organization members (admin or member role) can manage every destination type. Organization API keys can manage webhook destinations and their subscriptions only, and only when the key is granted this operation by name (a key granted all operations does not include it). Connected-app (OAuth) tokens are not accepted.
PATCH
/
api
/
v2
/
utilities
/
notifications
/
subscriptions
/
{id}
Update a notification subscription
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/utilities/notifications/subscriptions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"enabled": true
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({enabled: true})
};
fetch('https://beta.creatorcore.co/api/v2/utilities/notifications/subscriptions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/utilities/notifications/subscriptions/{id}"
payload = { "enabled": True }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"success": true,
"subscription": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"topic": "<string>",
"destinationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Authorizations
Was this page helpful?