Organizations
Update notification preferences snapshot
PATCH
/
v1
/
settings
/
notifications
Update notification preferences snapshot
curl --request PATCH \
--url https://api.wazapin.com/v1/settings/notifications \
--header 'Content-Type: application/json' \
--data '
{
"settings": [
{
"description": "<string>",
"enabled": true,
"key": "<string>",
"label": "<string>"
}
]
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
settings: [{description: '<string>', enabled: true, key: '<string>', label: '<string>'}]
})
};
fetch('https://api.wazapin.com/v1/settings/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/settings/notifications"
payload = { "settings": [
{
"description": "<string>",
"enabled": True,
"key": "<string>",
"label": "<string>"
}
] }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"items": [
{
"description": "<string>",
"enabled": true,
"key": "<string>",
"label": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
Update notification preferences snapshot
curl --request PATCH \
--url https://api.wazapin.com/v1/settings/notifications \
--header 'Content-Type: application/json' \
--data '
{
"settings": [
{
"description": "<string>",
"enabled": true,
"key": "<string>",
"label": "<string>"
}
]
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
settings: [{description: '<string>', enabled: true, key: '<string>', label: '<string>'}]
})
};
fetch('https://api.wazapin.com/v1/settings/notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/settings/notifications"
payload = { "settings": [
{
"description": "<string>",
"enabled": True,
"key": "<string>",
"label": "<string>"
}
] }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"items": [
{
"description": "<string>",
"enabled": true,
"key": "<string>",
"label": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}