Preferences
Save independent monthly usage threshold and summary email opt-ins for the current instance administrator.
Save independent monthly usage threshold and summary email opt-ins for the current instance administrator. The request is scoped to preferences accessible to the authenticated caller.
PUT
/
api
/
v1
/
preferences
/
quota-notifications
Save independent monthly usage threshold and summary email opt-ins for the current instance administrator.
curl --request PUT \
--url https://api.revoengine.com/api/v1/preferences/quota-notifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"thresholdEnabled": false,
"thresholdPercent": 80,
"monthlySummaryEnabled": false
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({thresholdEnabled: false, thresholdPercent: 80, monthlySummaryEnabled: false})
};
fetch('https://api.revoengine.com/api/v1/preferences/quota-notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/preferences/quota-notifications"
payload = {
"thresholdEnabled": False,
"thresholdPercent": 80,
"monthlySummaryEnabled": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"thresholdEnabled": false,
"thresholdPercent": 80,
"monthlySummaryEnabled": false
}Body
application/json
Response
⌘I
Save independent monthly usage threshold and summary email opt-ins for the current instance administrator.
curl --request PUT \
--url https://api.revoengine.com/api/v1/preferences/quota-notifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"thresholdEnabled": false,
"thresholdPercent": 80,
"monthlySummaryEnabled": false
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({thresholdEnabled: false, thresholdPercent: 80, monthlySummaryEnabled: false})
};
fetch('https://api.revoengine.com/api/v1/preferences/quota-notifications', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/preferences/quota-notifications"
payload = {
"thresholdEnabled": False,
"thresholdPercent": 80,
"monthlySummaryEnabled": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"thresholdEnabled": false,
"thresholdPercent": 80,
"monthlySummaryEnabled": false
}
