---
schema_version: "1"
id: ad9e86ccac60a7e9c48b00c979ba3d2ee958aaa4e191c7e001fc56e8ae148ced
title: ManagedContent Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_ConnectAPI_ManagedContent_static_methods.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0124d76c03ec810432df5be912f4cb9c258287f8871317634f7c02cbfb6be665
description: Clone managed content. Create and get managed content. Create, delete, or update a digital asset management (DAM) provider instance. Bulk delete managed content. Delete and replace variants. Get channels. Get DAM providers. Get targets that managed content space folders can be shared with. Get and update targets that managed content space folders are shared with. Expose managed content as metadata. Publish and unpublish content.These methods are for ManagedContent. All methods are static.Clone a piece of managed content.Create managed content.Create a digital asset management (DAM) provider instance.Create managed content with content data.Asynchronously bulk delete managed content folders and items for a managed content space.Delete a digital asset management (DAM) provider instance.Delete a managed content variant.Expose managed content as metadata so it can be accessed through Metadata API.Get all managed content versions for a channel.Get all managed content versions for a channel with absolute URLs.Get managed content delivery channels for the context user.Get all managed content versions for an Experience Cloud site.Get all managed content versions for an Experience Cloud site with absolute URLs.Get managed content versions for a channel using a list of content keys.Get managed content versions for a channel using a list of managed content IDs.Get managed content versions for a channel with absolute URLs using a list of managed content IDs.Get information about an import or export job.Get managed content versions for an Experience Cloud site using a list of content keys.Get managed content versions for an Experience Cloud site using a list of managed content IDs.Get managed content versions for an Experience Cloud site with absolute URLs using a list of managed content IDs.Get managed content versions using a list of content topic names.Get managed content versions with absolute URLs using a list of content topic names.Get managed content versions using a list of content keys and content topic names.Get managed content versions using a list of managed content IDs and content topic names.Get managed content versions with absolute URLs using a list of managed content IDs and content topic names.Get digital asset management (DAM) providers.Get digital asset management (DAM) providers for a managed content space.Get a single managed content item for a managed content space.Get targets that a managed content space folder is shared with.Get targets that a managed content space folder can be shared with.Update the targets that a managed content space folder is shared with.Publish content.Replace a managed content variant.Replace a managed content variant, including content data.Unpublish content.Update a digital asset management (DAM) provider instance.These methods for ManagedContent are retired.Get managed content delivery channels for the context user.Get a managed content space.
---
# ManagedContent Class

Clone managed content. Create and get managed content. Create, delete, or update a digital asset management (DAM) provider instance. Bulk delete managed content. Delete and replace variants. Get channels. Get DAM providers. Get targets that managed content space folders can be shared with. Get and update targets that managed content space folders are shared with. Expose managed content as metadata. Publish and unpublish content.

## Namespace

[ConnectApi](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_connect_api.htm "The ConnectApi namespace (also called Connect in Apex) provides classes for accessing the same data available in Connect REST API. Use Connect in Apex to create custom experiences in Salesforce.")

## ManagedContent Methods

These methods are for ManagedContent. All methods are static.

- **[cloneManagedContentDocument(contentKeyOrId, ManagedContentCloneInputParam)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_cloneManagedContentDocument_1)**  
    Clone a piece of managed content.
- **[createManagedContent(ManagedContentInputParam)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_createManagedContent_1)**  
    Create managed content.
- **[createManagedContentProvider(providerInstanceInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_createManagedContentProvider_2)**  
    Create a digital asset management (DAM) provider instance.
- **[createManagedContentWithMedia(ManagedContentInputParam, contentData)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_createManagedContentWithMedia_2)**  
    Create managed content with content data.
- **[deleteContents(contentSpaceId, ManagedContentItemsDeleteInputParam)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_deleteContents_1)**  
    Asynchronously bulk delete managed content folders and items for a managed content space.
- **[deleteManagedContentProviderInstance(providerInstanceId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_deleteManagedContentProviderInstance_1)**  
    Delete a digital asset management (DAM) provider instance.
- **[deleteManagedContentVariant(variantId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_deleteManagedContentVariant_1)**  
    Delete a managed content variant.
- **[exposeContentsAsMetadata(input)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_exposeContentsAsMetadata_1)**  
    Expose managed content as metadata so it can be accessed through Metadata API.
- **[getAllContent(channelId, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getAllContent_1)**  
    Get all managed content versions for a channel.
- **[getAllContent(channelId, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate, showAbsoluteUrl)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getAllContent_2)**  
    Get all managed content versions for a channel with absolute URLs.
- **[getAllDeliveryChannels(pageParam, pageSize)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getAllDeliveryChannels_1)**  
    Get managed content delivery channels for the context user.
- **[getAllManagedContent(communityId, pageParam, pageSize, language, managedContentType)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getAllManagedContent_1)**  
    Get all managed content versions for an Experience Cloud site.
- **[getAllManagedContent(communityId, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getAllManagedContent_2)**  
    Get all managed content versions for an Experience Cloud site with absolute URLs.
- **[getContentByContentKeys(channelId, contentKeys, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate, showAbsoluteUrl)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getContentByContentKeys_2)**  
    Get managed content versions for a channel using a list of content keys.
- **[getContentByIds(channelId, managedContentIds, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getContentByIds_2)**  
    Get managed content versions for a channel using a list of managed content IDs.
- **[getContentByIds(channelId, managedContentIds, pageParam, pageSize, language, managedContentType, includeMetadata, startDate, endDate, showAbsoluteUrl)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getContentByIds_3)**  
    Get managed content versions for a channel with absolute URLs using a list of managed content IDs.
- **[getContentJob(jobId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getContentJob_1)**  
    Get information about an import or export job.
- **[getManagedContentByContentKeys(communityId, contentKeys, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentByContentKeys_2)**  
    Get managed content versions for an Experience Cloud site using a list of content keys.
- **[getManagedContentByIds(communityId, managedContentIds, pageParam, pageSize, language, managedContentType)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentByIds_2)**  
    Get managed content versions for an Experience Cloud site using a list of managed content IDs.
- **[getManagedContentByIds(communityId, managedContentIds, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentByIds_3)**  
    Get managed content versions for an Experience Cloud site with absolute URLs using a list of managed content IDs.
- **[getManagedContentByTopics(communityId, topics, pageParam, pageSize, language, managedContentType)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentByTopics_3)**  
    Get managed content versions using a list of content topic names.
- **[getManagedContentByTopics(communityId, topics, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentByTopics_4)**  
    Get managed content versions with absolute URLs using a list of content topic names.
- **[getManagedContentByTopicsAndContentKeys(communityId, contentKeys, topics, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentByTopicsAndContentKeys_3a)**  
    Get managed content versions using a list of content keys and content topic names.
- **[getManagedContentByTopicsAndIds(communityId, managedContentIds, topics, pageParam, pageSize, language, managedContentType)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentByTopicsAndIds_4)**  
    Get managed content versions using a list of managed content IDs and content topic names.
- **[getManagedContentByTopicsAndIds(communityId, managedContentIds, topics, pageParam, pageSize, language, managedContentType, showAbsoluteUrl)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentByTopicsAndIds_5)**  
    Get managed content versions with absolute URLs using a list of managed content IDs and content topic names.
- **[getManagedContentProviders()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentProviders_1)**  
    Get digital asset management (DAM) providers.
- **[getManagedContentProvidersForSpace(contentSpaceId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentProvidersForSpace_2)**  
    Get digital asset management (DAM) providers for a managed content space.
- **[getManagedContentSingleItemContent(contentSpaceId, contentTypeFQN)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentSingleItemContent_1)**  
    Get a single managed content item for a managed content space.
- **[getMCSFolderShares(folderId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getMCSFolderShares_1)**  
    Get targets that a managed content space folder is shared with.
- **[getMCSFolderShareTargets(folderId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getMCSFolderShareTargets_1)**  
    Get targets that a managed content space folder can be shared with.
- **[patchMCSFolderShares(folderId, mcsFolderShareCollectionUpdateInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_patchMCSFolderShares_2)**  
    Update the targets that a managed content space folder is shared with.
- **[publish(publishInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_publish_1)**  
    Publish content.
- **[replaceManagedContentVariant(variantId, ManagedContentVariantInputParam)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_replaceManagedContentVariant_3)**  
    Replace a managed content variant.
- **[replaceManagedContentVariantWithMedia(variantId, ManagedContentVariantInputParam, contentData)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_replaceManagedContentVariantWithMedia_4)**  
    Replace a managed content variant, including content data.
- **[unpublish(unpublishInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_unpublish_1)**  
    Unpublish content.
- **[updateManagedContentProviderInstance(providerInstanceId, providerInstanceInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_updateManagedContentProviderInstance_2)**  
    Update a digital asset management (DAM) provider instance.

### cloneManagedContentDocument(contentKeyOrId, ManagedContentCloneInputParam)

Clone a piece of managed content.

#### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_document_clone.htm "Managed content clone input.")

ConnectApi.ManagedContentDocumentCloneInput class specifying the details for the cloned content.

#### Return Value

Type: [ConnectApi.ManagedContentDocumentClone](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_document_clone.htm "Managed content document clone.")

### createManagedContent(ManagedContentInputParam)

Create managed content.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentDocument createManagedContent(ConnectApi.ManagedContentDocumentInput ManagedContentInputParam)

#### Parameters

ManagedContentInputParam

Type: [ConnectApi.ManagedContentDocumentInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content.htm "Input representation for a piece of managed content.")

A ConnectApi.ManagedContentDocumentInput input class with information to create managed content.

#### Return Value

Type: [ConnectApi.ManagedContentDocument](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_document.htm "Information about a piece of managed content in an authoring space.")

### createManagedContentProvider(providerInstanceInput)

Create a digital asset management (DAM) provider instance.

#### API Version

65.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentProviderInstance createManagedContentProvider(ConnectApi.ManagedContentProviderInstanceInput providerInstanceInput)

#### Parameters

providerInstanceInput

Type: [ConnectApi.ManagedContentProviderInstanceInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_provider_instance.htm "Create or update a managed content provider instance.")

ConnectApi.ManagedContentProviderInstanceInput class with the required information to create an instance.

#### Return Value

Type: [ConnectApi.ManagedContentProviderInstance](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_provider_instance.htm "Information about a managed content provider instance.")

### createManagedContentWithMedia(ManagedContentInputParam, contentData)

Create managed content with content data.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentDocument createManagedContentWithMedia(ConnectApi.ManagedContentDocumentInput ManagedContentInputParam, ConnectApi.BinaryInput contentData)

#### Parameters

ManagedContentInputParam

Type: [ConnectApi.ManagedContentDocumentInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content.htm "Input representation for a piece of managed content.")

A ConnectApi.ManagedContentDocumentInput input class with information to create managed content.

contentData

Type: [ConnectApi.BinaryInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_binary.htm "Create a ConnectApi.BinaryInput object to attach files to feed items and comments, to add repository files, to create managed content, and to replace managed content variants.")

A new binary file of the content data for the managed content.

#### Return Value

Type: [ConnectApi.ManagedContentDocument](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_document.htm "Information about a piece of managed content in an authoring space.")

### deleteContents(contentSpaceId, ManagedContentItemsDeleteInputParam)

Asynchronously bulk delete managed content folders and items for a managed content space.

#### API Version

68.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentItemsDeleteOutput deleteContents(String contentSpaceId, ConnectApi.ManagedContentItemsDeleteInput ManagedContentItemsDeleteInputParam)

#### Parameters

contentSpaceId

Type: String

ID of the managed content space.

ManagedContentItemsDeleteInputParam

Type: [ConnectApi.ManagedContentItemsDeleteInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_items_delete.htm "Input representation for asynchronously deleting managed content items.")

ConnectApi.ManagedContentItemsDeleteInput class identifying which items to delete.

#### Return Value

Type: [ConnectApi.ManagedContentItemsDeleteOutput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_items_delete_output.htm "Result of submitting an asynchronous managed content items delete job.")

### deleteManagedContentProviderInstance(providerInstanceId)

Delete a digital asset management (DAM) provider instance.

You can’t delete a DAM provider instance that’s in use. Delete managed content that’s associated with a DAM provider instance before deleting the instance.

#### API Version

65.0

#### Requires Chatter

No

#### Signature

public static Void deleteManagedContentProviderInstance(String providerInstanceId)

#### Parameters

providerInstanceId

Type: String

ID of the provider instance to delete.

#### Return Value

Type: Void

### deleteManagedContentVariant(variantId)

Delete a managed content variant.

#### 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

### exposeContentsAsMetadata(input)

Expose managed content as metadata so it can be accessed through Metadata API.

#### API Version

68.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentMetadataCollection exposeContentsAsMetadata(ConnectApi.ManagedContentMetadataCollectionInput input)

#### Parameters

input

Type: [ConnectApi.ManagedContentMetadataCollectionInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_metadata_collection.htm "Input for exposing managed content as metadata.")

ConnectApi.ManagedContentMetadataCollectionInput class containing the identifiers for the managed content to expose as metadata.

#### Return Value

Type: [ConnectApi.ManagedContentMetadataCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_metadata_collection.htm "The results of exposing managed content as metadata.")

### 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

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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### 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

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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### getAllDeliveryChannels(pageParam, pageSize)

Get managed content delivery channels for the context user.

#### API Version

48.0–61.0

In version 62.0 and later, use [getChannels(pageParam, pageSize)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContentDelivery_static_methods.htm#apex_ConnectAPI_ManagedContentDelivery_getChannels_1 "Get managed content delivery channels for the context user.") 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

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.

#### Return Value

Type: [ConnectApi.ManagedContentChannelCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_channel_collection.htm "Collection of managed content channels.")

### 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

Developer name of the content type, such as cms\_document or cms\_image.

#### Return Value

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### 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

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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### getContentJob(jobId)

Get information about an import or export job.

#### API Version

68.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentJob getContentJob(String jobId)

#### Parameters

jobId

Type: String

ID of the job.

#### Return Value

Type: [ConnectApi.ManagedContentJob](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_job.htm "Information about a managed content import or export job.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<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

Type: [ConnectApi.ManagedContentVersionCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_version_collection.htm "Collection of managed content versions.")

### getManagedContentProviders()

Get digital asset management (DAM) providers.

#### API Version

65.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentProviderCollection getManagedContentProviders()

#### Return Value

Type: [ConnectApi.ManagedContentProviderCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_provider_collection.htm "Collection of managed content providers.")

### getManagedContentProvidersForSpace(contentSpaceId)

Get digital asset management (DAM) providers for a managed content space.

#### API Version

66.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentProviderCollection getManagedContentProvidersForSpace(String contentSpaceId)

#### Parameters

contentSpaceId

Type: String

ID of the managed content space.

#### Return Value

Type: [ConnectApi.ManagedContentProviderCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_provider_collection.htm "Collection of managed content providers.")

### getManagedContentSingleItemContent(contentSpaceId, contentTypeFQN)

Get a single managed content item for a managed content space.

#### API Version

68.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentDocument getManagedContentSingleItemContent(String contentSpaceId, String contentTypeFQN)

#### Parameters

contentSpaceId

Type: String

ID of the managed content space.

contentTypeFQN

Type: String

Fully qualified name of the managed content.

#### Return Value

Type: [ConnectApi.ManagedContentDocument](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_document.htm "Information about a piece of managed content in an authoring space.")

### getMCSFolderShares(folderId)

Get targets that a managed content space folder is shared with.

To get the targets that a managed content space folder can be shared with, use [getMCSFolderShareTargets(folderId)](#apex_ConnectAPI_ManagedContent_getMCSFolderShareTargets_1 "Get targets that a managed content space folder can be shared with.").

#### API Version

63.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.MCSFolderShareCollection getMCSFolderShares(String folderId)

#### Parameters

folderId

Type: String

ID of the folder.

#### Return Value

Type: [ConnectApi.MCSFolderShareCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_m_c_s_folder_share_collection.htm "Collection of targets that a managed content space folder is shared with.")

### getMCSFolderShareTargets(folderId)

Get targets that a managed content space folder can be shared with.

To get the targets that a managed content space folder is shared with, use [getMCSFolderShares(folderId)](#apex_ConnectAPI_ManagedContent_getMCSFolderShares_1 "Get targets that a managed content space folder is shared with.").

#### API Version

63.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.MCSFolderShareTargetCollection getMCSFolderShareTargets(String folderId)

#### Parameters

folderId

Type: String

ID of the folder.

#### Return Value

Type: [ConnectApi.MCSFolderShareTargetCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_m_c_s_folder_share_target_collection.htm "Collection of targets that a managed content space folder can be shared with.")

### patchMCSFolderShares(folderId, mcsFolderShareCollectionUpdateInput)

Update the targets that a managed content space folder is shared with.

Workspaces are the only supported sharing targets. To get the targets that a managed content space folder is shared with, use [getMCSFolderShares(folderId)](#apex_ConnectAPI_ManagedContent_getMCSFolderShares_1 "Get targets that a managed content space folder is shared with."). To get the targets that a managed content space folder can be shared with, use [getMCSFolderShareTargets(folderId)](#apex_ConnectAPI_ManagedContent_getMCSFolderShareTargets_1 "Get targets that a managed content space folder can be shared with.").

#### API Version

63.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.MCSFolderShareCollection patchMCSFolderShares(String folderId, ConnectApi.MCSFolderShareCollectionUpdateInput mcsFolderShareCollectionUpdateInput)

#### Parameters

folderId

Type: String

ID of the folder.

mcsFolderShareCollectionUpdateInput

Type: [ConnectApi.MCSFolderShareCollectionUpdateInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_m_c_s_folder_share_collection_update.htm "Update the targets that a managed content space folder is shared with.")

ConnectApi.MCSFolderShareCollectionUpdateInput input class with the targets to share and unshare.

#### Return Value

Type: [ConnectApi.MCSFolderShareCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_m_c_s_folder_share_collection.htm "Collection of targets that a managed content space folder is shared with.")

### publish(publishInput)

Publish content.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentPublishOutput publish(ConnectApi.ManagedContentPublishInput publishInput)

#### Parameters

publishInput

Type: [ConnectApi.ManagedContentPublishInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_publish.htm "Input for publishing content.")

A ConnectApi.ManagedContentPublishInput request body specifying the content to publish.

#### Return Value

Type: [ConnectApi.ManagedContentPublishOutput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_publish_output.htm "Information about a Publish action")

### replaceManagedContentVariant(variantId, ManagedContentVariantInputParam)

Replace a managed content variant.

#### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_variant_update.htm "Input representation for replacing a managed content variant.")

A ConnectApi.ManagedContentVariantUpdateInput input class with information about the managed content variant that is replacing the existing variant.

#### Return Value

Type: [ConnectApi.ManagedContentVariant](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_variant.htm "Managed content variant.")

### replaceManagedContentVariantWithMedia(variantId, ManagedContentVariantInputParam, contentData)

Replace a managed content variant, including content data.

#### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_variant_update.htm "Input representation for replacing a managed content variant.")

A ConnectApi.ManagedContentVariantUpdateInput input class with information about the managed content variant that is replacing the existing variant.

contentData

Type: [ConnectApi.BinaryInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_binary.htm "Create a ConnectApi.BinaryInput object to attach files to feed items and comments, to add repository files, to create managed content, and to replace managed content variants.")

A new binary file to replace the content data of the managed content variant.

#### Return Value

Type: [ConnectApi.ManagedContentVariant](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_variant.htm "Managed content variant.")

### unpublish(unpublishInput)

Unpublish content.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentUnpublishOutput unpublish(ConnectApi.ManagedContentUnpublishInput unpublishInput)

#### Parameters

unpublishInput

Type: [ConnectApi.ManagedContentUnpublishInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_unpublish.htm "Input for unpublishing content.")

A ConnectApi,ManagedContentUnpublishInput request body specifying the content to unpublish.

#### Return Value

Type: [ConnectApi.ManagedContentUnpublishOutput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_unpublish_output.htm "Managed content unpublish action.")

### updateManagedContentProviderInstance(providerInstanceId, providerInstanceInput)

Update a digital asset management (DAM) provider instance.

#### API Version

66.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentProviderInstance updateManagedContentProviderInstance(String providerInstanceId, ConnectApi.ManagedContentProviderInput providerInstanceInput)

#### Parameters

providerInstanceId

Type: String

ID of the provider instance to update.

providerInstanceInput

Type: [ConnectApi.ManagedContentProviderInstanceInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_provider_instance.htm "Create or update a managed content provider instance.")

ConnectApi.ManagedContentProviderInstanceInput class with the required information to update an instance.

#### Return Value

Type: [ConnectApi.ManagedContentProviderInstance](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_provider_instance.htm "Information about a managed content provider instance.")

## Retired ManagedContent Methods

These methods for ManagedContent are retired.

- **[getAllDeliveryChannels(pageParam, pageSize)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#unique_1962701697)**  
    Get managed content delivery channels for the context user.
- **[getManagedContentSpace(contentSpaceId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContent_static_methods.htm#apex_ConnectAPI_ManagedContent_getManagedContentSpace_1)**  
    Get a managed content space.

### getAllDeliveryChannels(pageParam, pageSize)

Get managed content delivery channels for the context user.

#### API Version

48.0–61.0

In version 62.0 and later, use [getChannels(pageParam, pageSize)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContentDelivery_static_methods.htm#apex_ConnectAPI_ManagedContentDelivery_getChannels_1 "Get managed content delivery channels for the context user.") 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

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.

#### Return Value

Type: [ConnectApi.ManagedContentChannelCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_channel_collection.htm "Collection of managed content channels.")

### getManagedContentSpace(contentSpaceId)

Get a managed content space.

#### API Version

55.0–63.0

In version 64.0 and later, use [getManagedContentSpace(contentSpaceId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContentSpaces_static_methods.htm#apex_ConnectAPI_ManagedContentSpaces_getManagedContentSpace_2 "Get a managed content space.") 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.

#### Return Value

Type: [ConnectApi.ManagedContentSpace](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_managed_content_space.htm "Managed content space.")