OpenapiBilling
Update a Credit Bucket (PUT). Coverage set is fully replaced.
PUT
bearer_authheader
AuthorizationBearer <token>bucketId*stringCredit Bucket ID
Format
uuidapplication/json- body
Request body for updating a Credit Bucket (PUT).
All provided fields fully replace the stored state (coverage set is
replaced, not merged). Clearing the coverage set (client_app_ids empty) is
rejected with 400. Registration routing remains rule-owned.
clientAppIds*array<>Replacement coverage set — at least one entry required.
description?string|nulldisplayOrder?|Format
int32enabled?boolean|nullname*stringCredit bucket updated
application/json- response
Detail shape of a Credit Bucket (BucketDetail).
bucketKey*stringclientApps*array<>description?|Optional human-readable description (echoed from the stored bucket; POST/PUT already accept this field).
displayOrder*integerFormat
int32enabled*booleanid*stringFormat
uuidname*stringruleReferences*array<>Distribution rules referencing this bucket. Aggregates both owners; empty when no rule targets this bucket.
curl -X PUT 'https://example.com/api/bill/credit-buckets/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'Content-Type: application/json' \
-d '{
"clientAppIds": [
"0a0ecf87-a0a2-4505-9123-85e831ff87de"
],
"name": "string"
}'Example Response
{
"bucketKey": "string",
"clientApps": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
],
"description": "string",
"displayOrder": 0,
"enabled": true,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"ruleReferences": [
{
"enabled": true,
"entitlementMappingId": "5a6a5cd7-9ec8-47b5-b1d7-457ac100853a",
"ownerType": "string",
"ruleId": "70af3071-65d9-4ec3-b3cb-5283e8d55dac",
"triggerSources": [
"string"
]
}
]
}