Home > @tridion-sites/open-api-client > VersioningService > undoCheckOut
Reverts the check-out of a versioned item. The operation removes the editable version without saving any changes and also removes the lock from the item. This operation returns an instance of ‘VersionedItem’ type, as implemented by one of the following:<ul class="model-list"><li>Component</li><li>ComponentTemplate</li><li>ExternalComponent</li><li>Page</li><li>PageTemplate</li><li>Schema</li><li>TemplateBuildingBlock</li></ul>
Signature:
static undoCheckOut({ escapedVersionedItemId, requestModel, }: {
escapedVersionedItemId: string;
requestModel: UndoCheckOutRequest;
}): CancelablePromise<VersionedItem>;
Parameter | Type | Description |
---|---|---|
{ escapedVersionedItemId, requestModel, } | { escapedVersionedItemId: string; requestModel: UndoCheckOutRequest; } |
Returns:
CancelablePromise<VersionedItem>
VersionedItem The request was successful.
ApiError