Toggle all budget alerts
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/billing/budget/alerts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"is_enabled": true
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/billing/budget/alerts"
payload = { "is_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({is_enabled: true})
};
fetch('https://paradigm.lighton.ai/api/v3/billing/budget/alerts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"updated": 123
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Budget
Toggle all budget alerts
Enable or disable all alert thresholds for the company’s budget in a single operation. Requires CompanyAdmin role.
PATCH
/
api
/
v3
/
billing
/
budget
/
alerts
Toggle all budget alerts
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/billing/budget/alerts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"is_enabled": true
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/billing/budget/alerts"
payload = { "is_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({is_enabled: true})
};
fetch('https://paradigm.lighton.ai/api/v3/billing/budget/alerts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"updated": 123
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Enable or disable all alerts at once.
Response
Number of alert thresholds whose state was changed.