Set event preferences
curl --request PUT \
--url https://aquila.attaxr.com/api/notification-event-preferences \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"preferences": [
{
"channelId": "<string>",
"eventType": "<string>",
"enabled": true
}
]
}
'const options = {
method: 'PUT',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({preferences: [{channelId: '<string>', eventType: '<string>', enabled: true}]})
};
fetch('https://aquila.attaxr.com/api/notification-event-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/notification-event-preferences"
payload = { "preferences": [
{
"channelId": "<string>",
"eventType": "<string>",
"enabled": True
}
] }
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Notification Event Preferences
Set event preferences
Batch upsert. Each preference is inserted or updated.
PUT
/
api
/
notification-event-preferences
Set event preferences
curl --request PUT \
--url https://aquila.attaxr.com/api/notification-event-preferences \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"preferences": [
{
"channelId": "<string>",
"eventType": "<string>",
"enabled": true
}
]
}
'const options = {
method: 'PUT',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({preferences: [{channelId: '<string>', eventType: '<string>', enabled: true}]})
};
fetch('https://aquila.attaxr.com/api/notification-event-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/notification-event-preferences"
payload = { "preferences": [
{
"channelId": "<string>",
"eventType": "<string>",
"enabled": True
}
] }
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}
