Class WorkflowShareClient
- Namespace
- Crews.PlanningCenter.Api.People.V2025_07_17
- 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
httpClientHttpClienturiUri
Properties
Person
Associated Person.
public PersonClient Person { get; }
Property Value
Methods
DeleteAsync(CancellationToken)
Deletes the WorkflowShare resource asynchronously.
public Task DeleteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA 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
cancellationTokenCancellationTokenA 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
PatchAsync(WorkflowShare, CancellationToken)
Updates an existing WorkflowShare resource asynchronously.
public Task<WorkflowShareResponse> PatchAsync(WorkflowShare resource, CancellationToken cancellationToken = default)
Parameters
resourceWorkflowShareThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA 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
documentJsonApiDocument<WorkflowShareResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA 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.