Accounts
Update account notification preferences
PATCH
/
v1
/
account
/
preferences
Update account notification preferences
curl --request PATCH \
--url https://console.sqwish.ai/v1/account/preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reminders_enabled": true
}
'import requests
url = "https://console.sqwish.ai/v1/account/preferences"
payload = { "reminders_enabled": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reminders_enabled: true})
};
fetch('https://console.sqwish.ai/v1/account/preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"reminders_enabled": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}Update account notification preferences
curl --request PATCH \
--url https://console.sqwish.ai/v1/account/preferences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reminders_enabled": true
}
'import requests
url = "https://console.sqwish.ai/v1/account/preferences"
payload = { "reminders_enabled": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reminders_enabled: true})
};
fetch('https://console.sqwish.ai/v1/account/preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"reminders_enabled": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}