Content
Export an object to a file
Changed onExports an object in one of the formats the editor's Export menu offers for it, and saves the file to the project as a reference: a document as pdf or docx, slides as pptx or pdf, a table as xlsx, a figure as png or svg. The file is the one the Export menu produces, with the same styles, page size, and headers and footers.
Download the bytes from file.contentUrl. PDF exports report pageCount, so a caller can check that a document fits.
The export runs on the server, in the same exporters the editor uses, whether or not anyone has the project open. The saved file is uncommitted until the branch is committed.
post/api/v2/projects/{projectId}/objects/{objectId}/exports
Request
- Base URLhttps://davinci-app.com
- AuthHTTP bearer
Query parameters
branchstring
Request body
Response
The object was exported and the file saved to the project.
Changes
- info
endpoint added
- info