content library item updatesession file: remove

Requests a file to be removed. The file will only be effectively removed when the update session is completed.

Request:

HTTP request

POST https://{server}/rest/com/vmware/content/library/item/updatesession/file/id:{update_session_id}?~action=remove

Path Parameters

Name Type Description
Required
update_session_id string Identifier of the update session.

Request Body Structure:

{
    "file_name""string"
}
<?xml version="1.0" ?>
<ns0:Remove-Input xmlns:ns0="http://vmware.com/content/library/item/updatesession/file" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <file_name>string</file_name>
</ns0:Remove-Input>

Request Body Parameters:

Name Type Description
bold = required
file_name string Name of the file to be removed.

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
404 not_found if the update session doesn't exist.
400 invalid_argument if the file doesn't exist in the library item associated with the update session.