ConnectApi.ManagedContentDocumentInput

Input representation for a piece of managed content.

PropertyTypeDescriptionRequired or OptionalAvailable Version
apiNameStringAPI name of the managed content.Optional61.0
contentBodyConnectApi.​ManagedContent​BodyInputBody of the managed content.Required60.0
contentKeyStringContent key to assign to the managed content. A content key is a universally unique identifier (UUID) such as MCA4CCV5QS2BAB5H7YRCRPTCWGZQ.Optional60.0
contentSpaceOr​FolderIdStringContent space or folder ID where the content is created.Required60.0
contentTypeStringFully qualified name of the content type to create.
If you’re uploading a binary file using a multipart/form-data message, contentType must be sfdc_cms__image or sfdc_cms__doc.
You can’t create a Form using sfdc_cms__form. The sfdc_cms__form content type isn’t supported.
Required60.0
externalIdStringExternal ID of the managed content.Optional60.0
folderPathStringWorkspace-relative path of an existing folder where content is created, for example Marketing/Campaigns/Q1. One leading slash is allowed, and / is the workspace root. Folder names are case-insensitive. Maximum of 5 folders. Requires a workspace ID in contentSpaceOrFolderId. Folders that don’t exist aren’t created.Optional68.0
titleStringTitle of the managed content.Required60.0
urlNameStringURL name of the managed content within the org.Optional60.0