Upload an image
1 min
POST
https://api.campaign.episerver.net/rest/{clientId}/assets/images
clientIdstringClient ID
acceptstringGenerated from available response content types
filestring<binary>file to be uploaded
namestringname of the attachment
201The image was uploaded successfully.
400<p>The parameters "name" or "url" are both provided or not provided, or the file name is missing. Alternatively, the image content type is not one of [image/jpeg, image/png, image/gif]</p>
500Error occurred while uploading the image.
curl --request POST \
--url https://api.campaign.episerver.net/rest/{clientId}/assets/images \
--header 'accept: application/json' \
--header 'content-type: multipart/form-data' \
--form 'file=@"/path/to/file"'