Update Processor
curl --request POST \
  --url https://api-prod.extend.app/processors/:id \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "config": {}
}'
{
  "success": true,
  "processor": {
    "object": "document_processor",
    "id": "processor_1234",
    "name": "Updated Invoice Processor",
    "type": "EXTRACT",
    "createdAt": "2024-03-01T12:00:00Z",
    "updatedAt": "2024-03-01T13:00:00Z",
    "draftVersion": {
      "id": "dpv_4567",
      "version": "draft",
      "config": {
        // Config object - see “Processor configs” for details
      }
    }
  }
}
This endpoint allows you to update the properties of an existing processor.

Path Parameters

id
string
required
The ID of the processor to update.

Body

name
string
The new name for the processor.
config
object
The new configuration for the processor. See the Processor Configs guide for more details.

Response

success
boolean
A true or false value indicating whether the processor was updated successfully or not.
processor
DocumentProcessor
A DocumentProcessor object representing the updated processor. See the DocumentProcessor object for more details.

Error Responses

success
boolean
Will be false if the request failed.
error
string
A description of the error that occurred.
{
  "success": true,
  "processor": {
    "object": "document_processor",
    "id": "processor_1234",
    "name": "Updated Invoice Processor",
    "type": "EXTRACT",
    "createdAt": "2024-03-01T12:00:00Z",
    "updatedAt": "2024-03-01T13:00:00Z",
    "draftVersion": {
      "id": "dpv_4567",
      "version": "draft",
      "config": {
        // Config object - see “Processor configs” for details
      }
    }
  }
}