Update credit allocation rule
PATCH/license/api/v1/credit-allocation-rule/:ruleId
Update credit allocation rule.
Request
Path Parameters
- application/json
Body
required
Unique id. Ignored on create. Must match path param on update.
Customer id. Ignored on create and update.
Customer prisma id. Ignored on create and update.
Possible values: non-empty
and <= 200 characters
Rule name. Must be non-empty and unique. Required on create. Ignored on update if null.
Possible values: [AccountGroup
]
Must be 'AccountGroup'. Required on create. Ignored on update if null.
Possible values: <= 2147483647
Credits allocated to this rule. Required on create. Ignored on update if null.
Possible values: <= 100
Percent usage of allocatedCredits to trigger alarm. Required on create. Ignored on update if null.
Possible values: >= 1
, <= 2147483647
Account group ids. Must be at least one. Required on create. Ignored on update if null.
Credit usage for the requested time period
Percent credit usage of the rule allocated credits
Responses
- 200
- 400
Success
- */*
- Schema
- Example (from schema)
Schema
Unique id. Ignored on create. Must match path param on update.
Customer id. Ignored on create and update.
Customer prisma id. Ignored on create and update.
Possible values: non-empty
and <= 200 characters
Rule name. Must be non-empty and unique. Required on create. Ignored on update if null.
Possible values: [AccountGroup
]
Must be 'AccountGroup'. Required on create. Ignored on update if null.
Possible values: <= 2147483647
Credits allocated to this rule. Required on create. Ignored on update if null.
Possible values: <= 100
Percent usage of allocatedCredits to trigger alarm. Required on create. Ignored on update if null.
Possible values: >= 1
, <= 2147483647
Account group ids. Must be at least one. Required on create. Ignored on update if null.
Credit usage for the requested time period
Percent credit usage of the rule allocated credits
{
"id": "string",
"customerId": 0,
"prismaId": 0,
"name": "string",
"targetType": "AccountGroup",
"allocatedCredits": 0,
"alarmThreshold": 0,
"accountGroups": [
"string"
],
"usedCredits": 0,
"percentage": 0
}
invalid_parameter_value
- */*
- Schema
- Example (from schema)
Schema
timestamp
Http status
Error message
Error message
Request path
{
"timestamp": "string",
"status": 0,
"error": "string",
"message": "string",
"path": "string"
}