Update budget alert
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/billing/budget/alerts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"is_enabled": true,
"threshold_value": "<string>"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/billing/budget/alerts/{id}"
payload = {
"is_enabled": True,
"threshold_value": "<string>"
}
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, threshold_value: '<string>'})
};
fetch('https://paradigm.lighton.ai/api/v3/billing/budget/alerts/{id}', 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
Update budget alert
Update an existing alert threshold. Requires CompanyAdmin role.
PATCH
/
api
/
v3
/
billing
/
budget
/
alerts
/
{id}
Update budget alert
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/billing/budget/alerts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"is_enabled": true,
"threshold_value": "<string>"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/billing/budget/alerts/{id}"
payload = {
"is_enabled": True,
"threshold_value": "<string>"
}
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, threshold_value: '<string>'})
};
fetch('https://paradigm.lighton.ai/api/v3/billing/budget/alerts/{id}', 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.
Path Parameters
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data