cURL
curl -X DELETE "https://api.sitespy.app/api/v1/notifications" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"notification_urls": [
"mailto:admin@example.com"
]
}'import requests
headers = {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
}
data = {
'notification_urls': [
'mailto:admin@example.com'
]
}
response = requests.delete('https://api.sitespy.app/api/v1/notifications',
headers=headers, json=data)
print(response.status_code)
const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({notification_urls: ['<string>']})
};
fetch('https://api.sitespy.app/api/v1/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Notifications
Delete notification URLs
Delete one or more notification URLs from the configuration
DELETE
/
notifications
cURL
curl -X DELETE "https://api.sitespy.app/api/v1/notifications" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"notification_urls": [
"mailto:admin@example.com"
]
}'import requests
headers = {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
}
data = {
'notification_urls': [
'mailto:admin@example.com'
]
}
response = requests.delete('https://api.sitespy.app/api/v1/notifications',
headers=headers, json=data)
print(response.status_code)
const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({notification_urls: ['<string>']})
};
fetch('https://api.sitespy.app/api/v1/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
