uploadContent
Upload a file to your Marketing Cloud Next content workspace.
POST https://{subdomain}.my.salesforce.com/services/data/v63.0/connect/cms/contents
subdomain(string)Required. The unique API subdomain for your Salesforce org.
Authorization(string)Required. A unique, time-limited token that you can use to issue requests to Connect API. Replace
YOUR_ACCESS_TOKENwith your authentication token.
These property descriptions apply to the JSON part of the request body. A complete multi-part upload request contains a JSON part and a file part. For a complete example, see Request.
contentSpaceOrFolderId(string)Required. The ID of the folder to add the file to.
title(string)Required. A display name for the file.
contentType(string)Required. The type of content you're uploading. Possible values:
sfdc_cms__image—An image file.sfdc_cms__email—A marketing email.
urlName(string)The name to use in the URL of the file. If you don't specify a value, the URL name is the content title in lowercase letters, with spaces replaced with hyphens.
contentBody.sfdc_cms:media.source.type(string)An object that contains metadata for the file. Set the value to
file.
- 201 Created
This response indicates that the API accepted your request to start a content ingestion job.
- 400 Bad Request
This response indicates that your request contained errors that prevented the file from being uploaded. When you receive a 400 response, examine the request syntax for issues. For example, this response can be returned if you specify an invalid value for
contentSpaceOrFolderIdorcontentTypein the JSON part of the request body.- 401 Unauthorized
This response indicates that the API wasn’t able to authorize your request. When you receive a 401 response, verify that your authorization token is still valid.