Change vApp Owner

To change the owner of a vApp, use the following request:

1
2
PUT /vapps/:id/owner.xml
PUT /vapps/:id/owner.json

XML Request Example

1
curl -i -X PUT http://onapp.test/vapps/12/owner.xml -u user:userpass -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d '<owner_change><new_owner_id>42</new_owner_id></owner_change>'

JSON Request Example

1
curl -i -X PUT http://onapp.test/vapps/12/owner.json -u user:userpass -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{"owner_change": {"new_owner_id": 42}}'

Where:

id - the ID of the new owner of the vApp