Upload image

Uploads a new image to the specified image folder.

The permitted file types are as follows:

File extensionMIME typeFile type
.gifimage/gifGIF Image
.jpegimage/jpegJPEG Image
.jpgimage/jpegJPEG Image
.pngimage/pngPNG image

It can accept either a file uploaded using form data or a JSON body with the filename and file data in Base64. You can choose which method works best for you.


Please note that the root document folder ID is 0

It can accept either a file uploaded using form data or a JSON body with the filename and file data in Base64. You can choose which method works best for you.

🚧

We only accept supported file types for security reasons

The fileName must end with a recognized file extension, such as jpg, png etc...


Path Params
integer
required
≥ 0

The image folder id.
Note The root folder id is 0

Body Params
string
required

The filename of the image

string
required

The image file data in Base64

Headers
string

If you are a partner of Dotdigital and have a verified integration then include your integration tracking token here.

string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Response

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json