Edit Bucket

To edit a bucket, use the following request:

1
2
PUT /billing/buckets/14.xml
PUT /billing/buckets/13.json

XML Request Example

1
curl -i -X PUT http://onapp.test/billing/buckets/14.xml -H 'Accept: application/xml' -H 'Content-Type: application/xml' -u user:userpass -d '<bucket><label>NewLabel</label><monthly-price type="integer">22</monthly-price></bucket>'

JSON Request Example

1
curl -i -X PUT http://onapp.test/billing/buckets/14.json -H 'Accept: application/json' -H 'Content-Type: application/json' -u user:userpass -d '{"label":"NewLabel","monthly_price":22}'

Where:

label - the bucket name

monthly_price - set the monthly fee for bucket usage