{"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.
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.
{"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"}}
{"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"}}