Styles/Documents

Bulk-accepts one or more AI review results (per-file or per-drawer). For each item the target style_document_ai_results row is flipped to DONE with the reviewer's picks (userDocumentType, userStyles) persisted, and a new style_documents row is created for every entry in userStyles using the AI-results row's own file_name as document_name. All-or-nothing atomicity: any validation failure — and any persistence error inside the batch — rolls back every result-row flip AND every style_documents row created in that call; the whole request either lands or none of it does. The userModified / userAdded booleans on the payload are accepted but not persisted — they can be re-derived on read by comparing to the ai_* fields.

patch/api/style-document-ai-results

Request body

idstring required
fileIdstring required

Response

Default Response

Changes

Changed in 1 of the 49 revisions of this API.1

Of the 49 revisions, 1 has no diff computed.