Skip to main content
POST
Preview. This endpoint is available to organisations in the Wordsmith MCP pilot. Other organisations receive 403 mcp_not_enabled. See the preview overview.
Adds one row per file to a report. Each file is copied into the report, and the row’s file_id is that copy. A file named twice in one request gets one row. A file already in the report gets another row, so check List Rows before adding it again. On a report created through the API, new rows start with every cell empty, and adding them computes nothing and uses no credits. Fill them with Run Report, passing the new row ids as row_ids. A report made in the app with auto-run on computes new rows straight away. This endpoint only works on a report built from files. When a report was created with repository_id, its rows follow the repository: add the files to the repository instead.

Authentication

Requires an API key, or an OAuth token with reports:write and files:read. The caller needs edit access to the report and read access to every file.

Path parameters

string
required
The report id.

Body parameters

string[]
required
The files to add, from 1 to 10 ids. Each must be a .pdf, .docx, .doc, .pptx or .png file.

Response

Returns 201 with the new rows in items, in the order of file_ids. failed_file_ids lists the files that could not be copied into the report; add them again.

Errors