post https://{region}-api.dotdigital.com/v2/image-folders//images
Uploads a new campaign image to a specified folder
This operation uploads a new campaign image to the specified folder.
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...
The permitted file types are as follows:
File extension | MIME type | File type |
---|---|---|
.gif | image/gif | GIF Image |
.jfi | image/jpeg | JPEG Image |
.jfif | image/jpeg | JPEG Image |
.jif | image/jpeg | JPEG Image |
.jpe | image/jpeg | JPEG Image |
.jpeg | image/jpeg | JPEG Image |
.jpg | image/jpeg | JPEG Image |
.png | image/png | PNG image |
.svg | image/svg+xml | Vector image |