> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://documentation.apexverify.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://documentation.apexverify.com/_mcp/server.

# Batch Preparation & Content Reprocessing

PATCH https://api.apexverify.com/v1/batch/{batch_uuid}

Start parsing and preparing the batch for verification once upload done & all parameters are correctly configured. This operation can be triggered as much as required until parameters match requirements.

Reference: https://documentation.apexverify.com/api-reference/apex-verify-api/batch/patch-v-1-batch-batch-uuid-patch

## Authentication

- `X-API-Key` header (required) — API Key authentication via header

## Request

### Path parameters

- `batch_uuid` (string, required)

## Response

### 200

Successful Response

- `status` (enum, required)
  - Allowed values: `ok`, `error`, `parse_error`

## Errors

### 400 Bad Request Error

Bad Request

- `message` (string, optional, default: Bad Request)

### 401 Unauthorized Error

Unauthorized

- `message` (string, optional, default: Unauthorized)

### 403 Forbidden Error

Forbidden

- `message` (string, optional, default: Forbidden)

### 404 Not Found Error

Not Found

- `message` (string, optional, default: Not Found)

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

### 429 Too Many Requests Error

Too Many Requests

- `message` (string, optional, default: Too Many Requests)

### 500 Internal Server Error

Internal Server Error

- `message` (string, optional, default: Internal Server Error. Please contact support at contact@apexverify.com...)

## Types

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Response**

```json
{
  "status": "ok"
}
```

**SDK Code**

```python
import requests

url = "https://api.apexverify.com/v1/batch/batch_uuid"

headers = {"X-API-Key": "<apiKey>"}

response = requests.patch(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.apexverify.com/v1/batch/batch_uuid';
const options = {method: 'PATCH', headers: {'X-API-Key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.apexverify.com/v1/batch/batch_uuid"

	req, _ := http.NewRequest("PATCH", url, nil)

	req.Header.Add("X-API-Key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.apexverify.com/v1/batch/batch_uuid")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.apexverify.com/v1/batch/batch_uuid")
  .header("X-API-Key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.apexverify.com/v1/batch/batch_uuid', [
  'headers' => [
    'X-API-Key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.apexverify.com/v1/batch/batch_uuid");
var request = new RestRequest(Method.PATCH);
request.AddHeader("X-API-Key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-API-Key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.apexverify.com/v1/batch/batch_uuid")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```