curl --request POST \
--url https://api-prod.extend.app/v1/processors/:id/publish \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"releaseType": "<string>",
"description": "<string>",
"config": {
"type": "<string>",
"baseProcessor": "<string>",
"baseVersion": "<string>",
"schema": {},
"fields": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"description": "<string>",
"schema": [
{}
],
"enum": [
{
"value": "<string>",
"description": "<string>"
}
]
}
],
"extractionRules": "<string>",
"advancedOptions": {
"fixedPageLimit": 123,
"splitMethod": "<string>",
"splitIdentifierRules": "<string>",
"splitExcelDocumentsBySheetEnabled": true
},
"classifications": [
{
"id": "<string>",
"type": "<string>",
"description": "<string>"
}
],
"classificationRules": "<string>",
"splitClassifications": [
{
"id": "<string>",
"type": "<string>",
"description": "<string>"
}
],
"splitRules": "<string>"
}
}
'{
"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": {
"fields": [
{
"id": "invoice_number",
"name": "invoice_number",
"description": "The invoice number",
"type": "string",
},
{
"id": "invoice_date",
"name": "invoice_date",
"description": "The date of the invoice",
"type": "date",
}
]
},
"createdAt": "2024-03-01T14:00:00Z",
"updatedAt": "2024-03-01T14:00:00Z"
}
}
Publish a new version of an existing processor in Extend.
curl --request POST \
--url https://api-prod.extend.app/v1/processors/:id/publish \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"releaseType": "<string>",
"description": "<string>",
"config": {
"type": "<string>",
"baseProcessor": "<string>",
"baseVersion": "<string>",
"schema": {},
"fields": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"description": "<string>",
"schema": [
{}
],
"enum": [
{
"value": "<string>",
"description": "<string>"
}
]
}
],
"extractionRules": "<string>",
"advancedOptions": {
"fixedPageLimit": 123,
"splitMethod": "<string>",
"splitIdentifierRules": "<string>",
"splitExcelDocumentsBySheetEnabled": true
},
"classifications": [
{
"id": "<string>",
"type": "<string>",
"description": "<string>"
}
],
"classificationRules": "<string>",
"splitClassifications": [
{
"id": "<string>",
"type": "<string>",
"description": "<string>"
}
],
"splitRules": "<string>"
}
}
'{
"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": {
"fields": [
{
"id": "invoice_number",
"name": "invoice_number",
"description": "The invoice number",
"type": "string",
},
{
"id": "invoice_date",
"name": "invoice_date",
"description": "The date of the invoice",
"type": "date",
}
]
},
"createdAt": "2024-03-01T14:00:00Z",
"updatedAt": "2024-03-01T14:00:00Z"
}
}
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.Documentation Index
Fetch the complete documentation index at: https://docs.extend.app/llms.txt
Use this file to discover all available pages before exploring further.
Show properties
"EXTRACT" for extraction processors."extraction_performance" or "extraction_light". See the base processor documentation for more details."4.0.0"). If this is provided, baseProcessor must be provided as well. See the processor changelog for available versions.schema or fields must be provided. We recommend using schema as fields is deprecated. See the extraction processor schema documentation for more details.schema or fields must be provided. We recommend using schema as fields is deprecated. See the extraction processor schema documentation for more details on using the fields shape.Show properties
string: Text valuesnumber: Numeric valuescurrency: Monetary valuesboolean: True/false valuesdate: Date valuesarray: Lists of values (requires schema)enum: Values from a predefined list (requires enum)object: Nested structure (requires schema)signature: Signature informationShow properties
Show properties
standard: Default chunking strategysemantic: Content-aware chunking based on document structureintelligent: AI-based selectionconfidence: Select based on confidence scoretake_first: Always use first chunktake_last: Always use last chunkShow properties
"CLASSIFY" for classification processors."classification_performance" or "classification_light". See the base processor documentation for more details."3.2.0"). If this is provided, baseProcessor must be provided as well. See the processor changelog for available versions.Show properties
default maxShow properties
"SPLITTER" for splitter processors."splitter_performance". See the base processor documentation for more details."1.0.0"). If this is provided, baseProcessor must be provided as well. See the processor changelog for available versions.Show properties
high_precision: More accurate but potentially slowerlow_latency: Faster but potentially less precisefalse if the request failed.config which depends on the processor type.{
"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": {
"fields": [
{
"id": "invoice_number",
"name": "invoice_number",
"description": "The invoice number",
"type": "string",
},
{
"id": "invoice_date",
"name": "invoice_date",
"description": "The date of the invoice",
"type": "date",
}
]
},
"createdAt": "2024-03-01T14:00:00Z",
"updatedAt": "2024-03-01T14:00:00Z"
}
}