Class BackgroundCheckClient
- Namespace
- Crews.PlanningCenter.Api.People.V2025_07_17
- 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
CreatedBy
Associated CreatedBy.
public PersonClient CreatedBy { get; }
Property Value
Person
Associated Person.
public PersonClient Person { get; }
Property Value
Methods
AddCustomParameter(string, string)
Adds a custom query parameter to the request URI.
public BackgroundCheckClient AddCustomParameter(string parameter, string value)
Parameters
Returns
- BackgroundCheckClient
The current BackgroundCheckClient instance.
ClearParameters()
Removes the entire query string from the request URI.
public BackgroundCheckClient ClearParameters()
Returns
- BackgroundCheckClient
The current BackgroundCheckClient instance.
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.
IncludeCreatedBy()
Include related CreatedBy resources in the response.
public BackgroundCheckClient IncludeCreatedBy()
Returns
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.