Content Library Item UpdateSession complete

Content Library Item UpdateSession complete

Completes the update session. This indicates that the client has finished making all the changes required to the underlying library item. If the client is pushing the content to the server, the library item will be updated once this call returns. If the server is pulling the content, the call may return before the changes become visible. In that case, the client can track the session to know when the server is done.

This operation requires the session to be in the Content Library Item UpdateSessionModel State.ACTIVE state.

Depending on the type of the library item associated with this session, a type adapter may be invoked to verify the validity of the files uploaded. The user can explicitly validate the session before completing the session by using the POST /content/library/item/update-session/{updateSessionId}/file?action=validate operation.

Modifications are not visible to other clients unless the session is completed and all necessary files have been received.

Returns an authorization error if you do not have all of the privileges described as follows:

  • Operation execution requires System.Anonymous.
Request
URI
POST
https://{api_host}/api/content/library/item/update-session/{updateSessionId}?action=complete
COPY
Path Parameters
string
updateSessionId
Required

Identifier of the update session that should be completed.

The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession.


Authentication
This operation uses the following authentication methods.
Responses
204

Success!

Operation doesn't return any data structure

400

if the update session is not in the Content Library Item UpdateSessionModel State.ACTIVE state, or if some of the files that will be uploaded by the client aren't received correctly.

Returns Vapi Std Errors NotAllowedInCurrentState of type(s) application/json
This response body class contains all of the following: InlineVapi Std Errors NotAllowedInCurrentState0
{
    "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 no update session with the given identifier exists.

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 POST -H 'Authorization: <value>' https://{api_host}/api/content/library/item/update-session/{updateSessionId}?action=complete