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.
Returns an authorization error if you do not have all of the privileges described as follows:
- Operation execution requires
System.Anonymous
.
Request
URI
DELETE
https://{api_host}/api/content/library/item/update-session/{updateSessionId}/file/{fileName}
COPY
Path Parameters
string
updateSessionId
Required
Identifier of the update session.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession
.
string
fileName
Required
Name of the file to be removed.
Responses
204
Success!
Operation doesn't return any data structure
400
if the file doesn't exist in the library item associated with the update session.
Returns
Vapi Std Errors InvalidArgument
of type(s)
application/json
This response body class contains all of the following:
InlineVapi Std Errors InvalidArgument0
{
"messages": [
{
"id": "string",
"default_message": "string",
"args": [
"string"
],
"params": {
"params": {
"s": "string",
"dt": "string",
"i": 0,
"d": "number",
"l": "Vapi Std NestedLocalizableMessage Object",
"format": "string",
"precision": 0
}
},
"localized": "string"
}
],
"data": {},
"error_type": "string"
}
404
if the update session doesn't exist.
Returns
Vapi Std Errors NotFound
of type(s)
application/json
This response body class contains all of the following:
InlineVapi Std Errors NotFound0
"Vapi Std Errors NotFound Object"
Code Samples
COPY
curl -X DELETE -H 'Authorization: <value>' https://{api_host}/api/content/library/item/update-session/{updateSessionId}/file/{fileName}