Skip to main content

uploadMediaContent

Uploads media content to the Contactsend static repository, to be used for configured Contactsend activities.

If the overwrite flag is set to false and you attempt to write content with the same name to the Contactsend static repository, the API generates and uses the next ordinal-based file name. For example, if the file name in use is originalfile.ext, the API applies the name originalfile-1.ext to the new content.

InputTypeDescription
tokenAuthTokenAuthorization token.
referencexs:intString identifying a subfolder-container in the Contactsend static repository.
fileNamexs:stringFile name for the uploaded resource.
contentxs:base64BinaryBinary content of the uploaded resource.
overwritexs:booleanOverwrite an existing resource, or generate the next ordinal-based file name.
OutputTypeDescription
xs:stringThe URL where the uploaded resource has been published.