Checks in the working copy of the specified document to create a version of that document.
Base Request
POST /api/documents/[docId]/checkin
where [docId] is the alphanumeric ID for the document.
Query Parameters
| Parameter | Description | Type | Required | Notes |
|---|---|---|---|---|
| minor | True/false indicator of a document check-in creating a minor version instead of a major version. | Boolean | Optional | Default is false. |
Headers
| Header Name | Description | Required | Values |
|---|---|---|---|
| Authorization | The access token | Required |
Bearer [access_token]
where [access_token] is a string generated when you complete authentication (see Getting Started) |
| User-Agent | Identity of the client making the request to the server | Required |
[product]/[version]
where [product] is the name of the software you are using to make the request and [version] is the numbered version of the software (for example, MyCompanyProduct/1.0). For information on other types of values commonly included in user-agent request headers, see the User-Agent HTTP header reference section on the Mozilla developer documentation website. |
| HXCS-REPOSITORY | The repository ID | Optional | Any contributed repository name. Default is default. |
| Accept | The format of the data to be returned | Optional | application/vnd.hxcs.v1+json |
Sample Request
POST /api/documents/[docId]/checkin?minor=true Authorization: Bearer [access_token] User-Agent: MyCompanyProduct/1.0 HXCS-REPOSITORY: default Accept: application/vnd.hxcs.v1+json
Response Body
See Document for response body details.
Sample Response
{
"sys_acl": [
{
"begin": "2025-02-27T19:10:37.123Z",
"creator": "string",
"end": "2025-02-27T19:10:37.123Z",
"granted": true,
"group": {
"id": "string",
"name": "string"
},
"permission": "string",
"status": "PENDING",
"user": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
}
}
],
"sys_changeToken": "string",
"sys_contributors": [
{
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
}
],
"sys_created": "2025-02-27T19:10:37.123Z",
"sys_creator": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"sys_description": "string",
"sys_effectiveAcl": [
{
"begin": "2025-02-27T19:10:37.123Z",
"creator": "string",
"end": "2025-02-27T19:10:37.123Z",
"granted": true,
"group": {
"id": "string",
"name": "string"
},
"permission": "string",
"status": "PENDING",
"user": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
}
}
],
"sys_effectivePermissions": [
"string"
],
"sys_fulltextBinary": "string",
"sys_id": "string",
"sys_isFolderish": true,
"sys_lastContributor": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"sys_lifecycleState": "string",
"sys_lockCreated": "2025-02-27T19:10:37.123Z",
"sys_lockOwner": {
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"sys_mixinTypes": [
"string"
],
"sys_modified": "2025-02-27T19:10:37.123Z",
"sys_name": "string",
"sys_parentId": "string",
"sys_parentPath": "string",
"sys_path": "string",
"sys_pathDepth": 0,
"sys_pos": 0,
"sys_primaryType": "string",
"sys_repository": "string",
"sys_secpol": [
"string"
],
"sys_title": "string",
"additionalProp1": {}
}
Status Codes and Errors
The following table lists the returned status codes.
| Code | Description | Notes |
|---|---|---|
| 200 | OK | Checks in the working copy of the specified document, which creates a version of that document. |
| 401 | Not Authorized | Authentication has failed or was not provided. |
| 403 | Not Allowed | Access permissions are invalid or missing. |
| 404 | Not Found | The document could not be found. |
| 409 | Conflict | The working copy of the document is already checked in. |
| 412 | Precondition Failed | The server did not allow the working copy of the document to be checked in because the document is not versionable. |
| 422 | Unprocessable Entity | The working copy of the document could not be checked in due to a validation error. |