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