Set what happens at the limit for one allowance
put/usage/limits/policy/{meter}
Set what happens at the limit for one allowance: stop, carry on and bill the overage, or ask a person; the warning levels; a ceiling on overage; a limit for this project alone.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
usage:admin- Graphql
Mutation.usageLimitSet- Sdk
usage.limit.set- Cli
usage limit set
Parameters
- meterstringrequiredIn the path
Request bodyapplication/json, required
- overagestringOne of: block, bill, approve.
- warnAtlist of number
- hardOverageinteger or null
- approvalBlockinteger or null
- projectCapinteger or null
Responses
- 200application/jsonSuccess
- overagestringrequiredOne of: block, bill, approve.
- warnAtlist of numberrequired
- hardOveragenumber or nullrequired
- approvalBlocknumber or nullrequired
- projectCapnumber or nullrequired
- pooledbooleanrequired
- overagestringrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring