Table of Contents

Class BackgroundCheckClient

Namespace
Crews.PlanningCenter.Api.People.V2024_09_12
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

httpClient HttpClient
uri Uri

Properties

Person

Associated Person.

public PersonClient Person { get; }

Property Value

PersonClient

Methods

DeleteAsync(CancellationToken)

Deletes the BackgroundCheck 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 BackgroundCheck resource asynchronously.

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

Parameters

cancellationToken CancellationToken

A 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

BackgroundCheckClient

PatchAsync(BackgroundCheck, CancellationToken)

Updates an existing BackgroundCheck resource asynchronously.

public Task<BackgroundCheckResponse> PatchAsync(BackgroundCheck resource, CancellationToken cancellationToken = default)

Parameters

resource BackgroundCheck

The resource data to be sent in the patch request.

cancellationToken CancellationToken

A 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

document JsonApiDocument<BackgroundCheckResource>

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

cancellationToken CancellationToken

A 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.