Edit Catalog
To edit a catalog, use the following request:
1
2
| PUT /catalogs/:id.xml
PUT /catalogs/:id.json
|
XML Request Example
1
| curl -i -X PUT -u user:userpass --url http://onapp.test/catalogs/12.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<vcloud_catalog><label>updated_label</label><description>updated_description</description></vcloud_catalog>'
|
JSON Request Example
1
| curl -i -X PUT -u user:userpass --url http://onapp.test/catalogs/12.json -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"vcloud_catalog": {"label": "updated_label", "description": "updated_description"}}'
|
Where:
label - the name of the catalog
description - the description of catalog