Content Library Item DownloadSession fail
Terminates the download session with a client specified error message.
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
Returns an authorization error if you do not have all of the privileges described as follows:
- Operation execution requires
System.Anonymous
.
Identifier of the download session to fail.
The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession
.
Request body for invoking operation: fail
{
"client_error_message": "string"
}
Client side error message. This can be useful in providing some extra details about the client side failure. Note that the message won't be translated to the user's locale.
Success!
if the download session is not in the Content Library Item DownloadSessionModel State.ACTIVE state.
{
"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"
}
if the download session does not exist.
"Vapi Std Errors NotFound Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"client_error_message:"string"}' https://{api_host}/api/content/library/item/download-session/{downloadSessionId}?action=fail