Create an attachment
1 min
POST
https://api.campaign.episerver.net/rest/{clientId}/attachments
clientIdstringClient ID
acceptstringGenerated from available response content types
filestring<binary>file to be uploaded
namestringname of the attachment
201The attachment was created successfully.
400The parameters "name" and "file" are required or the file name has an invalid extension. Ensure that "name" and "file" parameters are added to the request and the file extension is correct.
curl --request POST \
--url https://api.campaign.episerver.net/rest/{clientId}/attachments \
--header 'accept: application/json' \
--header 'content-type: multipart/form-data' \
--form 'file=@"/path/to/file"'