POST /vApp/{id}/metadata

Operation:
POST /vApp/{id}/metadata
Description:
Merge the metadata provided in the request with existing metadata.
Since:
1.5
Input parameters
Consume media type(s):
application/vnd.vmware.vcloud.metadata+xml
Input type:
MetadataType
Output parameters
Produce media type(s):
application/vnd.vmware.vcloud.task+xml
Output type:
TaskType
Examples
Request
HTTP 1.1
POST /api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961/metadata

Headers:
Content-Length: 268
Content-Type: application/vnd.vmware.vcloud.metadata+xml; charset=ISO-8859-1
x-vcloud-authorization: 4P7Jkhy1j5v08XmWuoRNHLa5jXLud5sKRyCKaI4lF78=

Body:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<vcloud:Metadata
    xmlns:vcloud="http://www.vmware.com/vcloud/v1.5">
    <vcloud:MetadataEntry>
        <vcloud:Key>someKey</vcloud:Key>
        <vcloud:Value>someValue</vcloud:Value>
    </vcloud:MetadataEntry>
</vcloud:Metadata>
Response
HTTP/1.1 202 Accepted

Headers:
Content-Length: 1267
Content-Type: application/vnd.vmware.vcloud.task+xml;version=1.5
Location: https://vcloud.example.com/api/task/23c8d6ff-36c4-417a-899a-c2daa22cc95d

Body:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Task
    xmlns="http://www.vmware.com/vcloud/v1.5"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    expiryTime="2012-02-16T11:14:21.926+02:00"
    href="https://vcloud.example.com/api/task/23c8d6ff-36c4-417a-899a-c2daa22cc95d"
    id="urn:vcloud:task:23c8d6ff-36c4-417a-899a-c2daa22cc95d"
    name="task"
    operation="Updating metadata for Virtual Application (b8589370-2c2e-4d7d-9100-d1db158a2961)"
    operationName="metadataUpdate"
    startTime="2011-11-18T11:14:21.926+02:00"
    status="running"
    type="application/vnd.vmware.vcloud.task+xml"
    xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
    <Link
        href="https://vcloud.example.com/api/task/23c8d6ff-36c4-417a-899a-c2daa22cc95d/action/cancel"
        rel="task:cancel"/>
    <Owner
        href="https://vcloud.example.com/api/vApp/vapp-b8589370-2c2e-4d7d-9100-d1db158a2961"
        name=""
        type="application/vnd.vmware.vcloud.vApp+xml"/>
    <User
        href="https://vcloud.example.com/api/admin/user/b584f4dc-89a5-4d2c-8aa2-9b9b854c262f"
        name="vcloud"
        type="application/vnd.vmware.admin.user+xml"/>
    <Organization
        href="https://vcloud.example.com/api/org/56523a16-0d07-4613-9d7d-b7a6533cf7f4"
        name="Default"
        type="application/vnd.vmware.vcloud.org+xml"/>
</Task>