Set notification preference
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/lists/{id}/notifications \
--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/lists/{id}/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/lists/{id}/notifications"
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,
"enabled": true
}Lists
Set notification preference
Sets the authenticated user’s notification preference for this list.
PATCH
/
api
/
v2
/
lists
/
{id}
/
notifications
Set notification preference
curl --request PATCH \
--url https://beta.creatorcore.co/api/v2/lists/{id}/notifications \
--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/lists/{id}/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/lists/{id}/notifications"
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,
"enabled": true
}Authorizations
bearerOrgApiKey & orgIdHeadercookieAuth
Was this page helpful?