Table of Contents

Class NoteCategoryShareClient

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

Client for interacting with the NoteCategoryShare resource.

public class NoteCategoryShareClient : SingletonResourceClient<NoteCategoryShare, NoteCategoryShareResource, NoteCategoryShareResponse>
Inheritance
NoteCategoryShareClient
Inherited Members

Constructors

NoteCategoryShareClient(HttpClient, Uri)

Client for interacting with the NoteCategoryShare resource.

public NoteCategoryShareClient(HttpClient httpClient, Uri uri)

Parameters

httpClient HttpClient
uri Uri

Properties

Person

Associated Person.

public PersonClient Person { get; }

Property Value

PersonClient

Methods

AddCustomParameter(string, string)

Adds a custom query parameter to the request URI.

public NoteCategoryShareClient AddCustomParameter(string parameter, string value)

Parameters

parameter string

The name of the query parameter.

value string

The value of the query parameter.

Returns

NoteCategoryShareClient

The current NoteCategoryShareClient instance.

ClearParameters()

Removes the entire query string from the request URI.

public NoteCategoryShareClient ClearParameters()

Returns

NoteCategoryShareClient

The current NoteCategoryShareClient instance.

DeleteAsync(CancellationToken)

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

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

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<NoteCategoryShareResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

IncludePerson()

Include related Person resources in the response.

public NoteCategoryShareClient IncludePerson()

Returns

NoteCategoryShareClient

PatchAsync(NoteCategoryShare, CancellationToken)

Updates an existing NoteCategoryShare resource asynchronously.

public Task<NoteCategoryShareResponse> PatchAsync(NoteCategoryShare resource, CancellationToken cancellationToken = default)

Parameters

resource NoteCategoryShare

The resource data to be sent in the patch request.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<NoteCategoryShareResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.

PatchAsync(JsonApiDocument<NoteCategoryShareResource>, CancellationToken)

Updates an existing NoteCategoryShare resource asynchronously.

public Task<NoteCategoryShareResponse> PatchAsync(JsonApiDocument<NoteCategoryShareResource> document, CancellationToken cancellationToken = default)

Parameters

document JsonApiDocument<NoteCategoryShareResource>

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

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

Task<NoteCategoryShareResponse>

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

Exceptions

JsonApiException

Thrown when the HTTP response indicates a failure status code.