Update a Slack notification setting
curl --request PUT \
--url https://api.interchange.io/api/v2/notification-delivery-preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stream": "product_updates",
"enabled": true
}
'import requests
url = "https://api.interchange.io/api/v2/notification-delivery-preferences"
payload = {
"stream": "product_updates",
"enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({stream: 'product_updates', enabled: true})
};
fetch('https://api.interchange.io/api/v2/notification-delivery-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"adapter": "slack",
"destination": {
"id": "<string>",
"name": "<string>",
"isPrimary": true
},
"configurable": true,
"preference": {
"stream": "product_updates",
"enabled": true
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Account
Update a Slack notification setting
Turn Product Updates on or off, or configure source outage alerts for the account’s primary Murph Slack channel. Source outage alerts can be turned on or off and sent after 10, 30, or 60 minutes.
PUT
/
notification-delivery-preferences
Update a Slack notification setting
curl --request PUT \
--url https://api.interchange.io/api/v2/notification-delivery-preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"stream": "product_updates",
"enabled": true
}
'import requests
url = "https://api.interchange.io/api/v2/notification-delivery-preferences"
payload = {
"stream": "product_updates",
"enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({stream: 'product_updates', enabled: true})
};
fetch('https://api.interchange.io/api/v2/notification-delivery-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"adapter": "slack",
"destination": {
"id": "<string>",
"name": "<string>",
"isPrimary": true
},
"configurable": true,
"preference": {
"stream": "product_updates",
"enabled": true
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}{
"data": null,
"error": {
"code": "<string>",
"message": "<string>",
"field": "<string>",
"details": {}
}
}Authorizations
API key or access token
Body
application/json