---
schema_version: "1"
id: fee3541d5756ab97e38dcb453aa999186c5001ad068e0f34bb5a00144b4a1f7c
title: ManagedContentChannels Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_ConnectAPI_ManagedContentChannels_static_methods.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContentChannels_static_methods.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 99efcf62ec5df763dafe6f0539ee25a775afe4dd8adbba4e2b185a528f814109
description: Get managed content channels. Create, get, update, or delete a managed content channel.These methods are for ManagedContentChannels. All methods are static.Delete a managed content channel.Get a managed content channel.Get managed content channels.Update a managed content channel.Create a managed content channel.
---
# ManagedContentChannels Class

Get managed content channels. Create, get, update, or delete a managed content channel.

## 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.")

## ManagedContentChannels Methods

These methods are for ManagedContentChannels. All methods are static.

- **[deleteManagedContentChannel(channelId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContentChannels_static_methods.htm#apex_ConnectAPI_ManagedContentChannels_deleteManagedContentChannel_1)**  
    Delete a managed content channel.
- **[getManagedContentChannel(channelId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContentChannels_static_methods.htm#apex_ConnectAPI_ManagedContentChannels_getManagedContentChannel_2)**  
    Get a managed content channel.
- **[getManagedContentChannels(pageParam, pageSize, showDetails)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContentChannels_static_methods.htm#apex_ConnectAPI_ManagedContentChannels_getManagedContentChannels_1)**  
    Get managed content channels.
- **[patchManagedContentChannel(channelId, ManagedContentChannelInput)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContentChannels_static_methods.htm#apex_ConnectAPI_ManagedContentChannels_patchManagedContentChannel_3)**  
    Update a managed content channel.
- **[postManagedContentChannel(ManagedContentCreateInputParam)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ManagedContentChannels_static_methods.htm#apex_ConnectAPI_ManagedContentChannels_postManagedContentChannel_2)**  
    Create a managed content channel.

### deleteManagedContentChannel(channelId)

Delete a managed content channel.

#### API Version

62.0

#### Requires Chatter

No

#### Signature

public static Void deleteManagedContentChannel(String channelId)

#### Parameters

channelId

Type: String

ID of the managed content channel to delete.

#### Return Value

Type: Void

### getManagedContentChannel(channelId)

Get a managed content channel.

#### API Version

62.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentChannel getManagedContentChannel(String channelId)

#### Parameters

channelId

Type: String

ID of the managed content channel.

#### Return Value

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

### getManagedContentChannels(pageParam, pageSize, showDetails)

Get managed content channels.

#### API Version

62.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentChannelsRepresentation getManagedContentChannels(Integer pageParam, Integer pageSize, Boolean showDetails)

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

showDetails

Type: Boolean

Specifies whether to show the channels’ detailed information (true) or summary information only (false). If you pass in null, the default is false.

#### Return Value

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

### patchManagedContentChannel(channelId, ManagedContentChannelInput)

Update a managed content channel.

#### API Version

62.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentChannel patchManagedContentChannel(String channelId, ConnectApi.ManagedContentChannelUpdateRepresentation ManagedContentChannelInput)

#### Parameters

channelId

Type: String

ID of the managed content channel to update.

ManagedContentChannelInput

Type: [ConnectApi.ManagedContentChannelUpdateRepresentation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_channel_update_representatio.htm "Input class to update a managed content channel.")

ConnectApi.ManagedContentChannelUpdateRepresentation input class with the updates.

#### Return Value

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

### postManagedContentChannel(ManagedContentCreateInputParam)

Create a managed content channel.

#### API Version

62.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ManagedContentChannel postManagedContentChannel(ConnectApi.ManagedContentChannelCreateRepresentation ManagedContentCreateInputParam)

#### Parameters

ManagedContentCreateInputParam

Type: [ConnectApi.ManagedContentChannelCreateRepresentation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_channel_create_representatio.htm "Input class to create a managed content channel.")

ConnectApi.ManagedContentChannelCreateRepresentation input class describing the managed content channel.

#### Return Value

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