action contract_p_post_reprocess_document_resource { label: "Schedule document reprocessing" description: "This endpoint schedules (async) reprocessing for the given document;\nit will call the async processing with the given desired version name,\nsimilar to the async document upload but skipping OCR.\nIt works asynchronously, so results need to be consulted by a separate call (or webhook)\n\n\n**Permission required:** upload" provider: contract_p method: POST path: "/documents/{document_id}/reprocess" encoding: json input: { type: "object" properties: { "X-Fields": { type: "string" format: "mask" } name: { type: "string" } reviewer: { type: "string" enum: ["Human", "Machine"] } } additionalProperties: false } output: { type: "object" required: ["id", "inbox", "original_filename", "page_count"] properties: { escalate: { type: "object" properties: { by: { type: "string" } since: { type: "string" format: "date-time" } value: { type: "boolean" } } } feedback: { type: "object" } files: { type: "array" items: { type: "object" properties: { embedded_attachment: { type: "boolean" } filehash: { type: "string" } filename: { type: "string" } leaf: { type: "boolean" } page: { type: "integer" } page_count: { type: "integer" } } } } flag_for_review: { type: "boolean" } id: { type: "string" } inbox: { type: "string" } last_version: { type: "string" } lock: { type: "object" additionalProperties: true } meta_information: { type: "object" } opened_by: { type: "array" items: { type: "object" additionalProperties: true } } original_filename: { type: "string" } page_count: { type: "integer" } prediction: { type: "object" } reject: { type: "object" additionalProperties: true } status_data: { type: "object" properties: { archived: { type: "boolean" } data: { type: "boolean" } escalate: { type: "boolean" } feedback: { type: "boolean" } lock: { type: "boolean" } ready_accepted: { type: "boolean" } ready_attempts: { type: "integer" } reject: { type: "boolean" } reject_accepted: { type: "boolean" } reject_attempts: { type: "integer" } sampling: { type: "boolean" } submit_accepted: { type: "boolean" } submit_attempts: { type: "integer" } success: { type: "boolean" } } } submitted: { type: "object" additionalProperties: true } timings: { type: "object" properties: { done_time: { type: "string" format: "date-time" } feedback_time: { type: "string" format: "date-time" } processing_period: { type: "number" } receive_time: { type: "string" format: "date-time" } start_time: { type: "string" format: "date-time" } submit_time: { type: "string" format: "date-time" } } } usage_data: { type: "object" } versions: { type: "array" items: { type: "object" } } } } }