Publish Item
Publishes the library item to specified subscriptions of the library. If no subscriptions are specified, then publishes the library item to all subscriptions of the library. if you do not have all of the privileges described as follows: - The resource com.vmware.content.library.Item referenced by the parameter libraryItemId requires ContentLibrary.PublishLibraryItem.
Request
URLURL
Path Parameters
Path Parameters
Library item identifier. The parameter must be an identifier for the resource type: com.vmware.content.library.Item.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
This is a request body class for an operation.
{
"force_sync_content": false
}
Whether to synchronize file content as well as metadata. This parameter applies only if the subscription is on-demand.
The list of subscriptions to publish this library item to.
Authentication
Errors
Errors
com.vmware.vapi.std.errors.invalid_argument : If one or more arguments in subscriptions is not valid. | com.vmware.vapi.std.errors.invalid_element_type : If the library item specified by libraryItemId is a member of a subscribed library. | com.vmware.vapi.std.errors.not_allowed_in_current_state : If the library item specified by libraryItemId does not belong to a published library.
com.vmware.vapi.std.errors.unauthenticated : If the user that requested the operation cannot be authenticated.
com.vmware.vapi.std.errors.unauthorized : If the user that requested the operation is not authorized to perform the operation.
com.vmware.vapi.std.errors.not_found : If the library item specified by libraryItemId does not exist.
com.vmware.vapi.std.errors.error : If the system reports an error while responding to the request.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
PowerCLI Client SDK All Parameters Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: post
x-vmw-doc-deprecated-path: /rest/com/vmware/content/library/item/id:{library_item_id}?~action=publish
x-vmw-doc-operation: publish