/documents/{docPath}/newVersion - Check in document

Checks in the working copy of the document and unlocks it.

Note:

This method changed in 6.8:

  • The method has new query string parameters: revertFromVersion and revertIfNoChange.
Note:

This method changed in 6.5:

End-point

PUT /documents/{docPath}/newVersion

Path parameters

Field Description

docPath

Full path of the document in the repository

Note: Collection separators "/" must be encoded as "%7C".

Query string parameters

Field Description

revertFromVersion

Identifies the document revision of document for reversion

revertIfNoChange

Determines whether the document should revert to its last revision if document has no updates

Request body

Field Type Description

data

String

Comment for the new revision

Possible response

HTTP status Description

200

The operation completed successfully

401

There is no session or the session is invalid

Response body

Field Type Description

result

CheckInResult

The result indicates if a document update exists or not

Additional Information

The check-in operation also unlocks the document.

Note: If the CCMS realizes that the new revision is identical to the revision in the repository, it does not create a new revision.