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