Update the content of an uploaded attachment
1 min
POST
https://api.campaign.episerver.net/rest/{clientId}/attachments/{attachmentId}/content
clientIdstringClient ID
attachmentIdinteger<int64>Attachment ID
acceptstringGenerated from available response content types
filestring<binary>file to be uploaded
namestringname of the attachment
200The attachment content was updated successfully.
404The attachment could not be found. Ensure that the required parameters such as "attachmentId" are correct and the attachment exists.
curl --request POST \
--url https://api.campaign.episerver.net/rest/{clientId}/attachments/{attachmentId}/content \
--header 'accept: application/json' \
--header 'content-type: multipart/form-data' \
--form 'file=@"/path/to/file"'