**Source URL:** https://limited.veevavault.dev/regulatory/vault-api/api-reference/26.1/documents/document-locks/undo-collaborative-authoring-checkout

# Undo Collaborative Authoring Checkout

Undo Collaborative Authoring checkout on up to 500 documents at once. Learn more about [Collaborative Authoring in Vault Help](https://platform.veevavault.help/en/lr/56842).

To undo basic checkout, see [Delete Document Lock](/regulatory/vault-api/api-reference/26.1/documents/document-locks/delete-document-lock).

<Endpoint path="/api/{version}/objects/documents/batch/lock" method="DELETE" />

## Headers

<FieldTable>
| Name | Description |
| --- | --- |
| `Accept` | `application/json` or `text/csv` |
| `Content-Type` | `text/csv` |
</FieldTable>

## Body Parameters

<Aside>
Some HTTP clients do not support `DELETE` requests with a body. As a workaround for these cases, you can simulate this request using the `POST` method with the `_method=DELETE` query parameter.
</Aside>

Upload parameters as a CSV file.

<FieldTable>
| Name | Description |
| --- | --- |
| `id`<Requiredness type="required" /> | The `id` of the document to undo checkout. Maximum 500 documents per request. |
</FieldTable>

## Request

<CodeExample title="">
```bash
curl -X POST -H "Authorization: {SESSION_ID}" \
-H "Content-Type: text/csv" \
-H "Accept: application/json" \
--data "id
7652
3
8" \
https://myvault.veevavault.com/api/v24.2/objects/documents/batch/lock
```
</CodeExample>

## Response

<CodeExample title="">
```json
{
   "responseStatus": "SUCCESS",
   "data": [
       {
           "responseStatus": "EXCEPTION",
           "responseMessage": "Document not found 19523/7652",
           "id": 7652
       },
       {
           "responseStatus": "FAILURE",
           "responseMessage": "Cannot use office365__sys undo check out for a document checked out to basic__sys",
           "id": 3
       },
       {
           "responseStatus": "SUCCESS",
           "responseMessage": "Undo check out successful",
           "id": 8
       }
   ]
}
```
</CodeExample>

## Response Details

On `SUCCESS`, Vault returns a `responseStatus` and `responseMessage` for each `id` in the request body. Partial success is allowed, meaning some documents in the batch may succeed while others fail. For any failed documents, the response includes a reason for the failure.

---

**Previous:** [Delete Document Lock](/regulatory/vault-api/api-reference/26.1/documents/document-locks/delete-document-lock)  
**Next:** [Document Renditions](/regulatory/vault-api/api-reference/26.1/documents/document-renditions)