tridion-sites-extensions-api-docs

Home > @tridion-sites/open-api-client > VersioningService > checkIn

VersioningService.checkIn() method

Checks in a versioned item that was checked out for editing. The operation converts the editable version into a new latest version of the item and 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 checkIn({ escapedVersionedItemId, requestModel, }: {
        escapedVersionedItemId: string;
        requestModel: CheckInRequest;
    }): CancelablePromise<VersionedItem>;

Parameters

Parameter Type Description
{ escapedVersionedItemId, requestModel, } { escapedVersionedItemId: string; requestModel: CheckInRequest; }  

Returns:

CancelablePromise<VersionedItem>

VersionedItem The request was successful.

Exceptions

ApiError