Update a notification destination
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"label": "<string>",
"config": {},
"enabled": true
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({label: '<string>', config: {}, enabled: true})
};
fetch('https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/{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/destinations/{id}"
payload = {
"label": "<string>",
"config": {},
"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,
"destination": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "slack_webhook",
"label": "<string>",
"config": {},
"enabled": true,
"createdByApiKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Notification destinations
Update a notification destination
Updates label, config, or enabled state. If the webhook has a subscription that can match payout events, changing its URL or re-enabling it requires permission to read payouts; otherwise 403. An API key that changes the URL or re-enables a webhook becomes its owner. 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
/
destinations
/
{id}
Update a notification destination
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"label": "<string>",
"config": {},
"enabled": true
}
'const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({label: '<string>', config: {}, enabled: true})
};
fetch('https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/{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/destinations/{id}"
payload = {
"label": "<string>",
"config": {},
"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,
"destination": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "slack_webhook",
"label": "<string>",
"config": {},
"enabled": true,
"createdByApiKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}Authorizations
Body
application/json
Was this page helpful?