Create budget alert
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/billing/budget/alerts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"threshold_value": "<string>"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/billing/budget/alerts"
payload = { "threshold_value": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({threshold_value: '<string>'})
};
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));{
"id": 123,
"is_enabled": true,
"threshold_type": "<string>",
"threshold_value": "<string>"
}{
"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
Create budget alert
Add an alert threshold to the company’s budget. Requires CompanyAdmin role.
POST
/
api
/
v3
/
billing
/
budget
/
alerts
Create budget alert
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/billing/budget/alerts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"threshold_value": "<string>"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/billing/budget/alerts"
payload = { "threshold_value": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({threshold_value: '<string>'})
};
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));{
"id": 123,
"is_enabled": true,
"threshold_type": "<string>",
"threshold_value": "<string>"
}{
"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