Table of Contents

Class WorkflowShareClient

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

Client for interacting with the WorkflowShare resource.

public class WorkflowShareClient : SingletonResourceClient<WorkflowShare, WorkflowShareResource, WorkflowShareResponse>
Inheritance
WorkflowShareClient
Inherited Members

Constructors

WorkflowShareClient(HttpClient, Uri)

Client for interacting with the WorkflowShare resource.

public WorkflowShareClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Properties

Person

Associated Person.

public PersonClient Person { get; }

Property Value

PersonClient

Methods

DeleteAsync(CancellationToken)

Deletes the WorkflowShare resource asynchronously.

public Task DeleteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task

A task representing the asynchronous delete operation.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

GetAsync(CancellationToken)

Fetches the WorkflowShare resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<WorkflowShareResponse>

A task representing the asynchronous operation, containing the WorkflowShare resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludePerson()

Include related Person resources in the response.

public WorkflowShareClient IncludePerson()

Returns

WorkflowShareClient

PatchAsync(WorkflowShare, CancellationToken)

Updates an existing WorkflowShare resource asynchronously.

public Task<WorkflowShareResponse> PatchAsync(WorkflowShare resource, CancellationToken cancellationToken = default)

Parameters

resource WorkflowShare

The resource data to be sent in the patch request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<WorkflowShareResponse>

A task representing the asynchronous operation, containing the updated WorkflowShare resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PatchAsync(JsonApiDocument<WorkflowShareResource>, CancellationToken)

Updates an existing WorkflowShare resource asynchronously.

public Task<WorkflowShareResponse> PatchAsync(JsonApiDocument<WorkflowShareResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<WorkflowShareResource>

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

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<WorkflowShareResponse>

A task representing the asynchronous operation, containing the updated WorkflowShare resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.