Table of Contents

Class PaginatedWorkflowCategoryClient

Namespace
Crews.PlanningCenter.Api.People.V2025_11_10
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with WorkflowCategory collection resources.

public class PaginatedWorkflowCategoryClient : PaginatedResourceClient<WorkflowCategory, WorkflowCategoryResource, WorkflowCategoryCollectionResponse, WorkflowCategoryResponse>
Inheritance
PaginatedWorkflowCategoryClient
Inherited Members

Constructors

PaginatedWorkflowCategoryClient(HttpClient, Uri)

Client for interacting with WorkflowCategory collection resources.

public PaginatedWorkflowCategoryClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

GetAsync(CancellationToken)

Fetches a paginated list of WorkflowCategory resources asynchronously.

public Task<WorkflowCategoryCollectionResponse> GetAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<WorkflowCategoryCollectionResponse>

A task representing the asynchronous operation, containing a paginated list of WorkflowCategory resources.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

OrderByCreatedAt()

Sort response items by the CreatedAt attribute.

public WorkflowCategoryClient OrderByCreatedAt()

Returns

WorkflowCategoryClient

OrderByCreatedAtDescending()

Sort response items by the CreatedAt attribute. Use reverse order.

public WorkflowCategoryClient OrderByCreatedAtDescending()

Returns

WorkflowCategoryClient

OrderByName()

Sort response items by the Name attribute.

public WorkflowCategoryClient OrderByName()

Returns

WorkflowCategoryClient

OrderByNameDescending()

Sort response items by the Name attribute. Use reverse order.

public WorkflowCategoryClient OrderByNameDescending()

Returns

WorkflowCategoryClient

OrderByUpdatedAt()

Sort response items by the UpdatedAt attribute.

public WorkflowCategoryClient OrderByUpdatedAt()

Returns

WorkflowCategoryClient

OrderByUpdatedAtDescending()

Sort response items by the UpdatedAt attribute. Use reverse order.

public WorkflowCategoryClient OrderByUpdatedAtDescending()

Returns

WorkflowCategoryClient

PostAsync(WorkflowCategory, CancellationToken)

Creates a new WorkflowCategory resource asynchronously.

public Task<WorkflowCategoryResponse> PostAsync(WorkflowCategory resource, CancellationToken cancellationToken = default)

Parameters

resource WorkflowCategory

The resource data to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<WorkflowCategoryResponse>

A task representing the asynchronous operation, containing the created WorkflowCategory resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PostAsync(JsonApiDocument<WorkflowCategoryResource>, CancellationToken)

Creates a new WorkflowCategory resource asynchronously.

public Task<WorkflowCategoryResponse> PostAsync(JsonApiDocument<WorkflowCategoryResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<WorkflowCategoryResource>

The JSON:API document to be sent in the POST request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<WorkflowCategoryResponse>

A task representing the asynchronous operation, containing the created WorkflowCategory resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

WhereCreatedAt(DateTime)

Query response items by the CreatedAt attribute.

public WorkflowCategoryClient WhereCreatedAt(DateTime value)

Parameters

value DateTime

Returns

WorkflowCategoryClient

WhereName(string)

Query response items by the Name attribute.

public WorkflowCategoryClient WhereName(string value)

Parameters

value string

Returns

WorkflowCategoryClient

WhereUpdatedAt(DateTime)

Query response items by the UpdatedAt attribute.

public WorkflowCategoryClient WhereUpdatedAt(DateTime value)

Parameters

value DateTime

Returns

WorkflowCategoryClient

WithId(string)

Creates a new instance of a WorkflowCategory client for a specific resource ID.

public WorkflowCategoryClient WithId(string id)

Parameters

id string

The ID of the resource to create a client for.

Returns

WorkflowCategoryClient

A new instance of the resource client for the specified resource ID.