cURL
Python
JavaScript
PHP
Go
Java
curl --request POST \
--url https://api-prod.extend.app/v1/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" : {
"fields" : [
{
"id" : "field_1234" ,
"name" : "invoice_number" ,
"description" : "The invoice number" ,
"type" : "string"
}
]
}
}
}
}
This endpoint allows you to update the properties of an existing processor. At present, the only property that can be updated is the name of the processor.
Path Parameters
The ID of the processor to update.
Body
The new name for the processor.
The new configuration for the processor. See the Processor Configs guide for more details.
Response
A true or false value indicating whether the processor was updated successfully or not.
Error Responses
Will be false
if the request failed.
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" : {
"fields" : [
{
"id" : "field_1234" ,
"name" : "invoice_number" ,
"description" : "The invoice number" ,
"type" : "string"
}
]
}
}
}
}