put_api_operator_v1_usage_alert_thresholds
PUT
/api/operator/v1/usage-alert-thresholds
const url = 'https://example.com/api/operator/v1/usage-alert-thresholds';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"reason":"example","value":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/operator/v1/usage-alert-thresholds \ --header 'Content-Type: application/json' \ --data '{ "reason": "example", "value": "example" }'Set the usage notification threshold pair (e.g. 80,95), audited as usage_alert_thresholds_set.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Body of a threshold change: the comma-separated pair (e.g. "80,95") and the
reason the audit row carries.
object
reason
required
string
value
required
string
Example generated
{ "reason": "example", "value": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
The pair in force.
object
thresholds
required
Array<number>
Example generated
{ "thresholds": [ 1 ]}