Table of Contents

Class NameSuffixClient

Namespace
Crews.PlanningCenter.Api.People.V2025_03_20
Assembly
Crews.PlanningCenter.Api.dll

Client for interacting with the NameSuffix resource.

public class NameSuffixClient : SingletonResourceClient<NameSuffix, NameSuffixResource, NameSuffixResponse>
Inheritance
NameSuffixClient
Inherited Members

Constructors

NameSuffixClient(HttpClient, Uri)

Client for interacting with the NameSuffix resource.

public NameSuffixClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Methods

DeleteAsync(CancellationToken)

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

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<NameSuffixResponse>

A task representing the asynchronous operation, containing the NameSuffix resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PatchAsync(NameSuffix, CancellationToken)

Updates an existing NameSuffix resource asynchronously.

public Task<NameSuffixResponse> PatchAsync(NameSuffix resource, CancellationToken cancellationToken = default)

Parameters

resource NameSuffix

The resource data to be sent in the patch request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<NameSuffixResponse>

A task representing the asynchronous operation, containing the updated NameSuffix resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PatchAsync(JsonApiDocument<NameSuffixResource>, CancellationToken)

Updates an existing NameSuffix resource asynchronously.

public Task<NameSuffixResponse> PatchAsync(JsonApiDocument<NameSuffixResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<NameSuffixResource>

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

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<NameSuffixResponse>

A task representing the asynchronous operation, containing the updated NameSuffix resource.

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.