cancel
Showing results for 
Search instead for 
Did you mean: 

I'm using the REST API to call Document.CheckOut. Is there another operation that can cancel the check-out w/out versioning?

B_Moore
Champ in-the-making
Champ in-the-making

when using REST API, we use Document.CheckOut to fetch the document. We have a use case to cancel the check-out without a check-in, i.e. "cancel" the checkout. Document.CheckIn always versions the document, either major or minor, which we do not want. Use case is to simulate our legacy ECM system. Is there a means to do this?

2 REPLIES 2

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

You can set "NONE" to the version param of the checkin operation: https://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform-2021/viewOperation/Document.Chec...

More info on the https://doc.nuxeo.com/nxdoc/versioning/#versioning-policies page (see that you can implement custom versionnig policies if needed)

Regards

B_Moore
Champ in-the-making
Champ in-the-making

Thanks Gregory. However, since we are using 10.10, the Document.CheckIn doesn't have the 'NONE' option, only "major", "minor". Using "NONE" or null forces a minor version to be created. Any options other than Document.CheckIn on 10.10?

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.