Large form PDFs no longer fail
Fixed: POST /forms/{form_id}/pdf
Exporting a form with many photos could fail with a 502 because the PDF, returned as base64 in the response, was larger than the response limit of about 5.5 MB. Two changes fix this:
- Add
"saveAsFile": trueto the request. The PDF is saved as a file on the form’s record and the response returns a download URL instead of base64. - Without
saveAsFile, an export that is too large now returns a clear422telling you to set it, instead of a502.
- Small exports without
saveAsFileare unchanged:pdfBase64,contentTypeandname. - With
saveAsFile, the response has nopdfBase64, whatever the size. - Every call with
saveAsFilecreates a new file in the record’s Files. Archive files you no longer need with the files endpoints.
