Clone Bucket

To clone a bucket with its prices and added resources, use the following request:

1
2
POST /billing/buckets/:bucket_id/clone.xml
POST  /billing/buckets/:bucket_id/clone.json

XML Request Example

1
curl -i -X POST http://onapp.test/billing/buckets/12/clone.xml -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

1
curl -i -X POST http://onapp.test/billing/buckets/12/clone.json -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

Where you indicate in the URL the ID of the cloned bucket.