> This page is for version v2024-12-23.
> For other versions, use one of these documentation indexes:
> - v2026-02-09 (default): https://docs.extend.ai/2026-02-09/llms.txt
> - v2025-04-21: https://docs.extend.ai/2025-04-21/llms.txt
> - v2024-12-23: https://docs.extend.ai/2024-12-23/llms.txt

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extend.ai/llms.txt
> Use this file to discover all available pages before exploring further.
>
> ## API version
> The current API version is `2026-02-09`, served at the site root (no version prefix in URLs).
> If this page URL contains `/2025-04-21/` or `/2024-12-23/`, you are reading an older API version.
> Prefer the current docs at https://docs.extend.ai/llms.txt unless the user explicitly needs that older version.
> Do not treat older-version pages as the source of truth for new integrations.

# Publish Processor Version

This endpoint allows you to publish a new version of an existing processor. Publishing a new version creates a snapshot of the processor's current configuration and makes it available for use in workflows.
Publishing a new version does not automatically update existing workflows using this processor. You may need to manually update workflows to use the new version if desired.

### Path Parameters

**`id`** `string` — required

The ID of the processor to publish a new version for.

---

### Body

**`releaseType`** `string` — required

The type of release for this version. The two options are: "major" and
"minor", which will increment the version number accordingly.

---

**`description`** `string`

A description of the changes in this version. This helps track the evolution
of the processor over time.

---

**`config`** `object`

Optionally supply a config object for this version of the processor.

If not supplied, the config that is currently in the `draft` ProcessorVersion in Extend will be used.

See the [Processor Configs](/2024-12-23/developers/guides/processor-configs) guide for more details on config schema.

---

### Response

**`success`** `boolean`

A true or false value indicating whether the processor version was published
successfully or not.

---

**`processorVersion`** `ProcessorVersion`

A ProcessorVersion object representing the newly published version of the
processor. See the [ProcessorVersion object](/2024-12-23/developers/objects/processor-version) for more details.

---

### Error Responses

**`success`** `boolean`

Will be `false` if the request failed.

---

**`error`** `string`

A description of the error that occurred.

---

#### Common Errors

* **400 Bad Request**: If the request body fails schema validation or if there's an issue with the provided configuration, particularly when it comes to the `config` which depends on the processor type.

```curl
curl --request POST \
  --url https://api-prod.extend.app/processors/:id/publish \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "releaseType": "<string>",
  "description": "<string>",
  "config": {}
}'
```

```python
import requests

url = "https://api-prod.extend.app/processors/:id/publish"

payload = {
    "releaseType": "<string>",
    "description": "<string>",
    "config": {}
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)
```

```javascript
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"releaseType":"<string>","description":"<string>","config":{}}'
};

fetch('https://api-prod.extend.app/processors/:id/publish', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
```

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api-prod.extend.app/processors/:id/publish",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\n  \"releaseType\": \"<string>\",\n  \"description\": \"<string>\",\n  \"config\": {}\n}",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>",
    "Content-Type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
```

```go
package main

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

func main() {

	url := "https://api-prod.extend.app/processors/:id/publish"

	payload := strings.NewReader("{\n  \"releaseType\": \"<string>\",\n  \"description\": \"<string>\",\n  \"config\": {}\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```java
HttpResponse<String> response = Unirest.post("https://api-prod.extend.app/processors/:id/publish")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"releaseType\": \"<string>\",\n  \"description\": \"<string>\",\n  \"config\": {}\n}")
  .asString();
```

**`Example Success Response`**

```json Example Success Response
{
  "success": true,
  "processorVersion": {
    "object": "document_processor_version",
    "id": "processor_version_5678",
    "processorId": "processor_1234",
    "processorType": "EXTRACT",
    "description": "Updated extraction rules for invoice processing",
    "version": "1.2.0",
    "config": {
      // Config object - see “Processor configs” for details
    },
    "createdAt": "2024-03-01T14:00:00Z",
    "updatedAt": "2024-03-01T14:00:00Z"
  }
}
```