Class WorkflowStepClient
- Namespace
- Crews.PlanningCenter.Api.People.V2024_09_12
- Assembly
- Crews.PlanningCenter.Api.dll
Client for interacting with the WorkflowStep resource.
public class WorkflowStepClient : SingletonResourceClient<WorkflowStep, WorkflowStepResource, WorkflowStepResponse>
- Inheritance
-
WorkflowStepClient
- Inherited Members
Constructors
WorkflowStepClient(HttpClient, Uri)
Client for interacting with the WorkflowStep resource.
public WorkflowStepClient(HttpClient httpClient, Uri uri)
Parameters
httpClientHttpClienturiUri
Properties
AssigneeSummaries
Associated AssigneeSummaries.
public PaginatedWorkflowStepAssigneeSummaryClient AssigneeSummaries { get; }
Property Value
DefaultAssignee
Associated DefaultAssignee.
public PersonClient DefaultAssignee { get; }
Property Value
Methods
DeleteAsync(CancellationToken)
Deletes the WorkflowStep 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 WorkflowStep resource asynchronously.
public Task<WorkflowStepResponse> GetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<WorkflowStepResponse>
A task representing the asynchronous operation, containing the WorkflowStep resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
IncludeDefaultAssignee()
Include related DefaultAssignee resources in the response.
public WorkflowStepClient IncludeDefaultAssignee()
Returns
PatchAsync(WorkflowStep, CancellationToken)
Updates an existing WorkflowStep resource asynchronously.
public Task<WorkflowStepResponse> PatchAsync(WorkflowStep resource, CancellationToken cancellationToken = default)
Parameters
resourceWorkflowStepThe resource data to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<WorkflowStepResponse>
A task representing the asynchronous operation, containing the updated WorkflowStep resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.
PatchAsync(JsonApiDocument<WorkflowStepResource>, CancellationToken)
Updates an existing WorkflowStep resource asynchronously.
public Task<WorkflowStepResponse> PatchAsync(JsonApiDocument<WorkflowStepResource> document, CancellationToken cancellationToken = default)
Parameters
documentJsonApiDocument<WorkflowStepResource>The JSON:API document to be sent in the patch request.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<WorkflowStepResponse>
A task representing the asynchronous operation, containing the updated WorkflowStep resource.
Exceptions
- JsonApiException
Thrown when the HTTP response indicates a failure status code.