1. Stylelabs.M.Sdk.Clients

Interface ISelectionPoolsClient

The client to execute selection pools operations in Content-Hub.

Namespace: StylelabsStylelabs.MSdkClients

Assembly: Stylelabs.M.Sdk.dll

Syntax

public interface ISelectionPoolsClient

Methods

ClearAsync(string, string, long?)

Clears a selection pool for an entity definition in Content-Hub. If the entity doesn't exist, nothing will happen.

Declaration

Task ClearAsync(string selectionPoolIdentifier, string definitionName, long? subPoolId = null)

Parameters

TypeNameDescription
stringselectionPoolIdentifierThe identifier of the selection pool.
stringdefinitionNameThe name of the definition.
longsubPoolIdThe id of the sub pool.

Returns

TypeDescription
TaskA representing the asynchronous operation.

Exceptions

TypeCondition
ForbiddenExceptionThrown when the entity exists but could not be deleted.

CreateAsync(string, string, IDictionary<string, IList>)

Creates a selection pool.

Declaration

Task<long> CreateAsync(string name, string identifier = null, IDictionary<string, IList<long>> items = null)

Parameters

TypeNameDescription
stringnameThe name of the selection pool.
stringidentifierThe identifier of the selection pool.
IDictionary<, >stringIList<>longitemsThe collection of items to add to the selection pool.

Returns

TypeDescription
Task<>longA representing the asynchronous operation.

GetAsync(string, IEnumerable, long?, DateTimeOffset?, bool?)

Gets a selection pool.

Declaration

Task<ISelectionPool> GetAsync(string selectionPoolIdentifier, IEnumerable<string> definitionNames, long? subPoolId = null, DateTimeOffset? modifiedSince = null, bool? ignorePermissions = false)

Parameters

TypeNameDescription
stringselectionPoolIdentifierThe identifier of the selection pool.
IEnumerable<>stringdefinitionNamesThe name of the definitions.
longsubPoolIdThe id of the sub pool.
DateTimeOffsetmodifiedSinceThe last date the selection was modified.
boolignorePermissionsWhether to ignore permissions.

Returns

TypeDescription
Task<>ISelectionPoolA ISelectionPool.

PatchAsync(PatchSelectionPoolRequest)

Patches a selection pool.

Declaration

Task PatchAsync(PatchSelectionPoolRequest request)

Parameters

Returns

TypeDescription
TaskA representing the asynchronous operation.
If you have suggestions for improving this article, let us know!