Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
API Reference

Upload an image

Upload an image either by specifying a file or URL.

Path Params
string
required

Client ID

Body Params
file
required

file to be uploaded

string

name of the attachment

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

400

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]

500

Error occurred while uploading the image.

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/vnd.optivo.broadmail.v1+json