Newer Version Available

This content describes an older version of this product. View Latest

ManagedContent Class

Get managed content versions. Get a managed content space.

Namespace

ConnectApi

ManagedContent Methods

The following are methods for ManagedContent. All methods are static.

getAllContent(channelId, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate)

Get all managed content versions for a channel.

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
The developer name of the content version.
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.

getAllContent(channelId, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate, showAbsoluteUrl)

Get all managed content versions for a channel with absolute URLs.

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
The developer name of the content version.
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.

getAllDeliveryChannels(pageParam, pageSize)

Get managed content delivery channels for the context user.

API Version

48.0

Available to Guest Users

48.0

Requires Chatter

No

Signature

public static ConnectApi.ManagedContentChannelCollection getAllDeliveryChannels(Integer pageParam, Integer pageSize)

Parameters

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. If you pass in null, the default size is 25.

getAllManagedContent(communityId, pageParam, pageSize, language, managedContentType)

Get all managed content versions for an Experience Cloud site.

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
The developer name of the content version.

getAllManagedContent(communityId, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)

Get all managed content versions for an Experience Cloud site with absolute URLs.

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
The developer name of the content version.
showAbsoluteUrl
Type: Boolean
Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.

getContentByContentKeys(channelId, contentKeys, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate, showAbsoluteUrl)

Get managed content versions for a channel using a list of content keys.

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
The developer name of the content version.
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.

getContentByIds(channelId, managedContentIds, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate)

Get managed content versions for a channel using a list of managed content IDs.

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.
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
The developer name of the content version.
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.

getContentByIds(channelId, managedContentIds, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate, showAbsoluteUrl)

Get managed content versions for a channel with absolute URLs using a list of managed content IDs.

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.
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
The developer name of the content version.
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.

getManagedContentByContentKeys(communityId, contentKeys, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)

Get managed content versions for an Experience Cloud site using a list of content keys.

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
The developer name of the content version.
showAbsoluteUrl
Type: Boolean
Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.

getManagedContentByIds(communityId, managedContentIds, pageParam, pageSize, language, managedContentType)

Get managed content versions for an Experience Cloud site using a list of managed content IDs.

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.
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
The developer name of the content version.

getManagedContentByIds(communityId, managedContentIds, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)

Get managed content versions for an Experience Cloud site with absolute URLs using a list of managed content IDs.

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.
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
The developer name of the content version.
showAbsoluteUrl
Type: Boolean
Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.

getManagedContentByTopics(communityId, topics, pageParam, pageSize, language, managedContentType)

Get managed content versions using a list of content topic names.

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
The developer name of the content version.

getManagedContentByTopics(communityId, topics, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)

Get managed content versions with absolute URLs using a list of content topic names.

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
The developer name of the content version.
showAbsoluteUrl
Type: Boolean
Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.

getManagedContentByTopicsAndContentKeys(communityId, contentKeys, topics, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)

Get managed content versions using a list of content keys and content topic names.

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
The developer name of the content version.
showAbsoluteUrl
Type: Boolean
Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.

getManagedContentByTopicsAndIds(communityId, managedContentIds, topics, pageParam, pageSize, language, managedContentType)

Get managed content versions using a list of managed content IDs and content topic names.

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.
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
The developer name of the content version.

getManagedContentByTopicsAndIds(communityId, managedContentIds, topics, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)

Get managed content versions with absolute URLs using a list of managed content IDs and content topic names.

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.
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
The developer name of the content version.
showAbsoluteUrl
Type: Boolean
Specifies whether to show absolute URLs in the output class (true) or not (false). The default value is false.

getManagedContentSpace(contentSpaceId)

Get a managed content space.

API Version

55.0

Requires Chatter

No

Signature

public static ConnectApi.ManagedContentSpace getManagedContentSpace(String contentSpaceId)

Parameters

contentSpaceId
Type: String
ID of the managed content space.

Return Value

Type: ConnectApi.ManagedContentSpace