Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ManagedContentSpaces Class

Create, get, update, or delete a managed content space. Get channels in a managed content space. Add or remove channels from a managed content space.

Namespace

ConnectApi

ManagedContentSpaces Methods

These methods are for ManagedContentSpaces. All methods are static.

deleteManagedContentSpace(contentSpaceId)

Delete a managed content space.

API Version

68.0

Requires Chatter

No

Signature

public static Void deleteManagedContentSpace(String contentSpaceId)

Parameters

contentSpaceId
Type: String
ID of the managed content space.

Return Value

Type: Void

getManagedContentSpace(contentSpaceId)

Get a managed content space.

API Version

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

getManagedContentSpaceChannels(contentSpaceId, pageParam, pageSize)

Get channels for a managed content space.

API Version

62.0

Requires Chatter

No

Signature

public static ConnectApi.ManagedContentSpaceChannelsRepresentation getManagedContentSpaceChannels(String contentSpaceId, Integer pageParam, Integer pageSize)

Parameters

contentSpaceId
Type: String
ID of the managed content space.
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
Number of items per page. Valid values are from 1 through 250. If you pass in null, the default size is 25. Items are sorted by the last modified date.

getManagedContentSpaces(pageParam, pageSize, nameFragment)

Get managed content spaces.

API Version

64.0

Requires Chatter

No

Signature

public static ConnectApi.ManagedContentSpaceCollectionRepresentation getManagedContentSpaces(Integer pageParam, Integer pageSize, String nameFragment)

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.
nameFragment
Type: String
Name fragment to filter spaces that contain the value in the workspace name.

patchManagedContentSpace(contentSpaceId, ManagedContentSpaceUpdateInput)

Update the name or description of a managed content space.

API Version

64.0

Requires Chatter

No

Signature

public static ConnectApi.ManagedContentSpace patchManagedContentSpace(String contentSpaceId, ConnectApi.ManagedContentSpaceUpdateInput ManagedContentSpaceUpdateInput)

Parameters

contentSpaceId
Type: String
ID of the managed content space.
ManagedContentSpaceUpdateInput
Type: ConnectApi.ManagedContentSpaceUpdateInput
ConnectApi.ManagedContentSpaceUpdateInput class with the updated name or description.

Return Value

Type: ConnectApi.ManagedContentSpace

patchManagedContentSpaceChannels(contentSpaceId, spaceChannels)

Add or remove channels from a managed content space.

API Version

62.0

Requires Chatter

No

Signature

public static ConnectApi.ManagedContentSpaceChannelsRepresentation patchManagedContentSpaceChannels(String contentSpaceId, ConnectApi.ManagedContentSpaceChannelsInputRepresentation spaceChannels)

Parameters

contentSpaceId
Type: String
ID of the managed content space.
spaceChannels
Type: ConnectApi.ManagedContentSpaceChannelsInputRepresentation
ConnectApi.ManagedContentSpaceChannelsInputRepresentation input class with the channels to add or remove from the managed content space.

postManagedContentSpace(ManagedContentSpaceInput)

Create a managed content space.

API Version

64.0

Requires Chatter

No

Signature

public static ConnectApi.ManagedContentSpace postManagedContentSpace(ConnectApi.ManagedContentSpaceInput ManagedContentSpaceInput)

Parameters

ManagedContentSpaceInput
Type: ConnectApi.ManagedContentSpaceInput
ConnectApi.ManagedContentSpaceInput class describing the space to create.

Return Value

Type: ConnectApi.ManagedContentSpace