added
[Editor 2.0] Images support in "Create document" call
October 21st, 2021 by Yurii Losinets
Upload images to Image blocks when creating a new document with the Create Document from PandaDoc Template request. Please note the image blocks in the template should be pre-set before creating a document.
Upload an image as a URL parameter inside a JSON request body in the following format:
"images": [
{
"name": "Image 1",
"urls": [
"https://s3.amazonaws.com/pd-static-content/public-docs/pandadoc-panda-bear.png"
]
}
]
Also, we support multipart/form-data
content type so that you can upload an image through form data.
Image formats supported: GIF, JPG, PNG.
The difference with Classic Editor
Editor 2.0 allows only one image per block and doesn't allow images in text blocks.