ManagedContent Class
Namespace
ManagedContent Methods
cloneManagedContentDocument(contentKeyOrId, ManagedContentCloneInputParam)
API Version
61.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentDocumentClone cloneManagedContentDocument(String contentKeyOrId, ConnectApi.ManagedContentDocumentCloneInput ManagedContentCloneInputParam)
Parameters
- contentKeyOrId
- Type: String
- Content key or ID of the managed content to clone.
- ManagedContentCloneInputParam
- Type: ConnectApi.ManagedContentDocumentCloneInput
- ConnectApi.ManagedContentDocumentCloneInput class specifying the details for the cloned content.
Return Value
createManagedContent(ManagedContentInputParam)
API Version
60.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentDocument createManagedContent(ConnectApi.ManagedContentDocumentInput ManagedContentInputParam)
Parameters
- ManagedContentInputParam
- Type: ConnectApi.ManagedContentDocumentInput
- A ConnectApi.ManagedContentDocumentInput input class with information to create managed content.
Return Value
createManagedContentWithMedia(ManagedContentInputParam, contentData)
API Version
60.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentDocument createManagedContentWithMedia(ConnectApi.ManagedContentDocumentInput ManagedContentInputParam, ConnectApi.BinaryInput contentData)
Parameters
- ManagedContentInputParam
- Type: ConnectApi.ManagedContentDocumentInput
- A ConnectApi.ManagedContentDocumentInput input class with information to create managed content.
- contentData
- Type: ConnectApi.BinaryInput
- A new binary file of the content data for the managed content.
Return Value
deleteManagedContentVariant(variantId)
API Version
60.0
Requires Chatter
No
Signature
public static Void deleteManagedContentVariant(String variantId)
Parameters
- variantId
- Type: String
- ID of the variant to delete.
Return Value
Type: Void
getAllContent(channelId, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate)
API Version
48.0
Available to Guest Users
48.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getAllContent(String channelId, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean includeMetadata, String startDate, String endDate)
Parameters
- channelId
- Type: String
- ID of the channel.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
- includeMetadata
- Type: Boolean
- Specifies whether to include metadata in the response (true) or not (false). The default value is false.
- startDate
- Type: String
- Publish start date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
- endDate
- Type: String
- Publish end date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
Return Value
getAllContent(channelId, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate, showAbsoluteUrl)
API Version
50.0
Available to Guest Users
50.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getAllContent(String channelId, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean includeMetadata, String startDate, String endDate, Boolean showAbsoluteUrl)
Parameters
- channelId
- Type: String
- ID of the channel.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
- includeMetadata
- Type: Boolean
- Specifies whether to include metadata in the response (true) or not (false). The default value is false.
- startDate
- Type: String
- Publish start date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
- endDate
- Type: String
- Publish end date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
- showAbsoluteUrl
- Type: Boolean
- Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.
Return Value
getAllDeliveryChannels(pageParam, pageSize)
API Version
48.0–61.0
In version 62.0 and later, use getChannels(pageParam, pageSize) in the ManagedContentDelivery class to get all delivery channels.
Available to Guest Users
48.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentChannelCollection getAllDeliveryChannels(Integer pageParam, Integer pageSize)
Parameters
Return Value
getAllManagedContent(communityId, pageParam, pageSize, language, managedContentType)
API Version
47.0
Available to Guest Users
47.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getAllManagedContent(String communityId, Integer pageParam, Integer pageSize, String language, String managedContentType)
Parameters
- communityId
- Type: String
- ID of the Experience Cloud site.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
Return Value
getAllManagedContent(communityId, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)
API Version
50.0
Available to Guest Users
50.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getAllManagedContent(String communityId, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean showAbsoluteUrl)
Parameters
- communityId
- Type: String
- ID of the Experience Cloud site.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
- showAbsoluteUrl
- Type: Boolean
- Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.
Return Value
getContentByContentKeys(channelId, contentKeys, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate, showAbsoluteUrl)
API Version
51.0
Available to Guest Users
51.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getContentByContentKeys(String channelId, List<String> contentKeys, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean includeMetadata, String startDate, String endDate, Boolean showAbsoluteUrl)
Parameters
- channelId
- Type: String
- ID of the channel.
- contentKeys
- Type: List<String>
- List of up to 50 content keys for the managed content. A content key is a universally unique identifier (UUID) such as MCA4CCV5QS2BAB5H7YRCRPTCWGZQ.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
- includeMetadata
- Type: Boolean
- Specifies whether to include metadata in the response (true) or not (false). The default value is false.
- startDate
- Type: String
- Publish start date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
- endDate
- Type: String
- Publish end date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
- showAbsoluteUrl
- Type: Boolean
- Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.
Return Value
getContentByIds(channelId, managedContentIds, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate)
API Version
48.0
Available to Guest Users
48.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getContentByIds(String channelId, List<String> managedContentIds, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean includeMetadata, String startDate, String endDate)
Parameters
- channelId
- Type: String
- ID of the channel.
- managedContentIds
- Type: List<String>
- Comma-separated list of managed content IDs. HTTP/2 clients support up to 200 IDs. HTTP/1.1 clients don’t.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
- includeMetadata
- Type: Boolean
- Specifies whether to include metadata in the response (true) or not (false). The default value is false.
- startDate
- Type: String
- Publish start date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
- endDate
- Type: String
- Publish end date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
Return Value
getContentByIds(channelId, managedContentIds, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate, showAbsoluteUrl)
API Version
50.0
Available to Guest Users
50.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getContentByIds(String channelId, List<String> managedContentIds, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean includeMetadata, String startDate, String endDate, Boolean showAbsoluteUrl)
Parameters
- channelId
- Type: String
- ID of the channel.
- managedContentIds
- Type: List<String>
- Comma-separated list of managed content IDs. HTTP/2 clients support up to 200 IDs. HTTP/1.1 clients don’t.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
- includeMetadata
- Type: Boolean
- Specifies whether to include metadata in the response (true) or not (false). The default value is false.
- startDate
- Type: String
- Publish start date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
- endDate
- Type: String
- Publish end date in ISO 8601 format, for example, 2011-02-25T18:24:31.000Z.
- showAbsoluteUrl
- Type: Boolean
- Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.
Return Value
getManagedContentByContentKeys(communityId, contentKeys, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)
API Version
51.0
Available to Guest Users
51.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getManagedContentByContentKeys(String communityId, List<String> contentKeys, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean showAbsoluteUrl)
Parameters
- communityId
- Type: String
- ID of the Experience Cloud site.
- contentKeys
- Type: List<String>
- List of up to 50 content keys for the managed content. A content key is a universally unique identifier (UUID) such as MCA4CCV5QS2BAB5H7YRCRPTCWGZQ.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
- showAbsoluteUrl
- Type: Boolean
- Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.
Return Value
getManagedContentByIds(communityId, managedContentIds, pageParam, pageSize, language, managedContentType)
API Version
47.0
Available to Guest Users
47.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getManagedContentByIds(String communityId, List<String> managedContentIds, Integer pageParam, Integer pageSize, String language, String managedContentType)
Parameters
- communityId
- Type: String
- ID of the Experience Cloud site.
- managedContentIds
- Type: List<String>
- Comma-separated list of managed content IDs. HTTP/2 clients support up to 200 IDs. HTTP/1.1 clients don’t.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
Return Value
getManagedContentByIds(communityId, managedContentIds, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)
API Version
50.0
Available to Guest Users
50.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getManagedContentByIds(String communityId, List<String> managedContentIds, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean showAbsoluteUrl)
Parameters
- communityId
- Type: String
- ID of the Experience Cloud site.
- managedContentIds
- Type: List<String>
- Comma-separated list of managed content IDs. HTTP/2 clients support up to 200 IDs. HTTP/1.1 clients don’t.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
- showAbsoluteUrl
- Type: Boolean
- Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.
Return Value
getManagedContentByTopics(communityId, topics, pageParam, pageSize, language, managedContentType)
API Version
47.0
Available to Guest Users
47.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getManagedContentByTopics(String communityId, List<String> topics, Integer pageParam, Integer pageSize, String language, String managedContentType)
Parameters
- communityId
- Type: String
- ID of the Experience Cloud site.
- topics
- Type: List<String>
- Comma-separated list of up to 15 content topic names.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
Return Value
getManagedContentByTopics(communityId, topics, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)
API Version
50.0
Available to Guest Users
50.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getManagedContentByTopics(String communityId, List<String> topics, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean showAbsoluteUrl)
Parameters
- communityId
- Type: String
- ID of the Experience Cloud site.
- topics
- Type: List<String>
- Comma-separated list of up to 15 content topic names.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
- showAbsoluteUrl
- Type: Boolean
- Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.
Return Value
getManagedContentByTopicsAndContentKeys(communityId, contentKeys, topics, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)
API Version
51.0
Available to Guest Users
51.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getManagedContentByTopicsAndContentKeys(String communityId, List<String> contentKeys, List<String> topics, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean showAbsoluteUrl)
Parameters
- communityId
- Type: String
- ID of the Experience Cloud site.
- contentKeys
- Type: List<String>
- List of up to 50 content keys for the managed content. A content key is a universally unique identifier (UUID) such as MCA4CCV5QS2BAB5H7YRCRPTCWGZQ.
- topics
- Type: List<String>
- Comma-separated list of up to 15 content topic names.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
- showAbsoluteUrl
- Type: Boolean
- Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.
Return Value
getManagedContentByTopicsAndIds(communityId, managedContentIds, topics, pageParam, pageSize, language, managedContentType)
API Version
47.0
Available to Guest Users
47.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getManagedContentByTopicsAndIds(String communityId, List<String> managedContentIds, List<String> topics, Integer pageParam, Integer pageSize, String language, String managedContentType)
Parameters
- communityId
- Type: String
- ID of the Experience Cloud site.
- managedContentIds
- Type: List<String>
- Comma-separated list of managed content IDs. HTTP/2 clients support up to 200 IDs. HTTP/1.1 clients don’t.
- topics
- Type: List<String>
- Comma-separated list of up to 15 content topic names.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
Return Value
getManagedContentByTopicsAndIds(communityId, managedContentIds, topics, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)
API Version
50.0
Available to Guest Users
50.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVersionCollection getManagedContentByTopicsAndIds(String communityId, List<String> managedContentIds, List<String> topics, Integer pageParam, Integer pageSize, String language, String managedContentType, Boolean showAbsoluteUrl)
Parameters
- communityId
- Type: String
- ID of the Experience Cloud site.
- managedContentIds
- Type: List<String>
- Comma-separated list of managed content IDs. HTTP/2 clients support up to 200 IDs. HTTP/1.1 clients don’t.
- topics
- Type: List<String>
- Comma-separated list of up to 15 content topic names.
- pageParam
- Type: Integer
- Number of the page you want returned. Starts at 0. If you pass in null or 0, the first page is returned.
- pageSize
- Type: Integer
- Specifies the number of items per page. Valid values are from 1 through 250. For performance reasons, we recommend 25 or fewer items per page. If you pass in null, the default size is 25.
- language
- Type: String
- Language locale for the managed content, for example, en_US. If the requested translation isn’t available, the language defaults to the context user’s language. If the context user’s language isn’t available, the language defaults to the content type’s original language.
- managedContentType
- Type: String
- Developer name of the content type, such as cms_document or cms_image.
- showAbsoluteUrl
- Type: Boolean
- Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.
Return Value
publish(publishInput)
API Version
60.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentPublishOutput publish(ConnectApi.ManagedContentPublishInput publishInput)
Parameters
- publishInput
- Type: ConnectApi.ManagedContentPublishInput
- A ConnectApi.ManagedContentPublishInput request body specifying the content to publish.
Return Value
replaceManagedContentVariant(variantId, ManagedContentVariantInputParam)
API Version
60.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVariant replaceManagedContentVariant(String variantId, ConnectApi.ManagedContentVariantUpdateInput ManagedContentVariantInputParam)
Parameters
- variantId
- Type: String
- ID of the managed content variant to replace.
- ManagedContentVariantInputParam
- Type: ConnectApi.ManagedContentVariantUpdateInput
- A ConnectApi.ManagedContentVariantUpdateInput input class with information about the managed content variant that is replacing the existing variant.
Return Value
replaceManagedContentVariantWithMedia(variantId, ManagedContentVariantInputParam, contentData)
API Version
60.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentVariant replaceManagedContentVariantWithMedia(String variantId, ConnectApi.ManagedContentVariantUpdateInput ManagedContentVariantInputParam, ConnectApi.BinaryInput contentData)
Parameters
- variantId
- Type: String
- ID of the managed content variant to replace.
- ManagedContentVariantInputParam
- Type: ConnectApi.ManagedContentVariantUpdateInput
- A ConnectApi.ManagedContentVariantUpdateInput input class with information about the managed content variant that is replacing the existing variant.
- contentData
- Type: ConnectApi.BinaryInput
- A new binary file to replace the content data of the managed content variant.
Return Value
unpublish(unpublishInput)
API Version
60.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentUnpublishOutput unpublish(ConnectApi.ManagedContentUnpublishInput unpublishInput)
Parameters
- unpublishInput
- Type: ConnectApi.ManagedContentUnpublishInput
- A ConnectApi,ManagedContentUnpublishInput request body specifying the content to unpublish.
Return Value
Retired ManagedContent Methods
getAllDeliveryChannels(pageParam, pageSize)
API Version
48.0–61.0
In version 62.0 and later, use getChannels(pageParam, pageSize) in the ManagedContentDelivery class to get all delivery channels.
Available to Guest Users
48.0
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentChannelCollection getAllDeliveryChannels(Integer pageParam, Integer pageSize)
Parameters
Return Value
getManagedContentSpace(contentSpaceId)
API Version
55.0–63.0
In version 64.0 and later, use getManagedContentSpace(contentSpaceId) in the ManagedContentSpaces class to get a managed content space.
Requires Chatter
No
Signature
public static ConnectApi.ManagedContentSpace getManagedContentSpace(String contentSpaceId)
Parameters
- contentSpaceId
- Type: String
- ID of the managed content space.