action contract_p_post_document_submit_eval_resource { label: "Submit a feedback" description: "Send a feedback for the given document and optionally evaluate.\n\nWhen a document is to be reviewed, this endpoint is used to send the user feedback.\n\n**Permission required:** submit" provider: contract_p method: POST path: "/documents/{document_id}/feedback" encoding: json input: { type: "object" properties: { annotations: { type: "object" properties: { string: { type: "array" items: { type: "object" required: ["gold", "text", "textual_coord"] properties: { gold: { type: "string" } text: { type: "string" } textual_coord: { type: "array" items: { type: "integer" } } visual_coord: { type: "array" items: { type: "integer" } } } } } } } cmp_version: { type: "string" } evaluate: { type: "boolean" } lines: { type: "object" properties: { string: { type: "array" items: { type: "object" properties: { string: { type: "object" additionalProperties: true } } } } } } name: { type: "string" } sections: { type: "array" items: { type: "object" required: ["page"] properties: { confidence: { type: "integer" } document_type: { type: "string" } format: { type: "string" } page: { type: "integer" } } } } } } output: { type: "object" additionalProperties: true } }