/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:
revertFromVersionandrevertIfNoChange.
End-point
| PUT | /documents/{docPath}/newVersion |
Path parameters
| Field | Description |
|---|---|
|
Full path of the document in the repository Note: Collection
separators "/" must be encoded as "%7C".
|
Query string parameters
| Field | Description |
|---|---|
|
|
Identifies the document revision of document for reversion |
|
|
Determines whether the document should revert to its last revision if document has no updates |
Request body
| Field | Type | Description |
|---|---|---|
|
|
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 |
|---|---|---|
|
|
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.