TeamGriddeveloper
TeamGrid Developer

appointments SDK client

6 typed @teamgrid/api-client methods for Calendar, plus 1 convenience helper.

Client propertyclient.appointments
Mapped operations6
API groupsCalendar

Operation methods

Parameter declarations below are taken from the pinned TypeScript source. Request fields and responses are summarized from the matching OpenAPI operation; follow the API link for every field, constraint, example, and error description.

GET/appointments
Full API operation →

appointments.list

Lists native and provider-managed appointment metadata. Private foreign appointments are redacted; provider identifiers, participants, recurrence payloads, and tokens are never returned.

client.appointments.list(options: CalendarListOptions)
Return form
Promise
Operation ID
listAppointments
Required scopes
appointments:read
Conditional scopes
appointments:delegated:read
SDK parameters
options: CalendarListOptions
Query request fields
cursor?: stringlimit?: integerarchived?: booleanstart: stringend: stringuserId?: Array<string>
Success
200 Array<Appointment> envelope
Declared API errors
400401403429502503
POST/appointments
Full API operation →

appointments.create

The cell-local App re-authenticates the credential, derives the acting user from the credential principal, and applies tenant, sharing, plan, idempotency, and provider-management policy.

client.appointments.create(data: AppointmentCreate, options: MutationOptions = {})
Return form
Promise
Operation ID
createAppointment
Required scopes
appointments:write
Conditional scopes
appointments:delegated:write
SDK parameters
data: AppointmentCreateoptions: MutationOptions
Header request fields
Idempotency-Key: string
Request body
AppointmentCreateapplication/json
Success
201 Appointment envelope
Declared API errors
400401403409429502503
GET/appointments/{id}
Full API operation →

appointments.get

Use this operation to get an appointment. It returns the resource only when it belongs to the authenticated workspace and is visible to the credential. Required scopes, product permissions, sharing rules, workspace locks, and regional cell ownership are enforced for every request.

client.appointments.get(id: string, options?: RequestOptions)
Return form
Promise
Operation ID
getAppointment
Required scopes
appointments:read
Conditional scopes
appointments:delegated:read
SDK parameters
id: stringoptions: RequestOptions
Path request fields
id: string
Success
200 Appointment envelope
Declared API errors
400401403404429502503
PATCH/appointments/{id}
Full API operation →

appointments.update

Requires the latest strong resource ETag. The cell-local App re-authenticates and atomically applies the tenant-bound revision before returning a fresh ETag.

client.appointments.update(id: string, data: AppointmentUpdate, options: AppointmentMutationOptions)
Return form
Promise
Operation ID
updateAppointment
Required scopes
appointments:write
Conditional scopes
appointments:delegated:write
SDK parameters
id: stringdata: AppointmentUpdateoptions: AppointmentMutationOptions
Path request fields
id: string
Header request fields
If-Match: string
Request body
AppointmentUpdateapplication/json
Success
200 Appointment envelope
DELETE/appointments/{id}
Full API operation →

appointments.archive

Requires the latest strong resource ETag. The cell-local App re-authenticates and atomically applies the tenant-bound revision before returning a fresh ETag.

client.appointments.archive(id: string, options: AppointmentMutationOptions)
Return form
Promise
Operation ID
archiveAppointment
Required scopes
appointments:write
Conditional scopes
appointments:delegated:write
SDK parameters
id: stringoptions: AppointmentMutationOptions
Path request fields
id: string
Header request fields
If-Match: string
Success
200 Appointment envelope
POST/appointments/{id}/restore
Full API operation →

appointments.restore

Requires the latest strong resource ETag. The cell-local App re-authenticates and atomically applies the tenant-bound revision before returning a fresh ETag.

client.appointments.restore(id: string, options: AppointmentMutationOptions)
Return form
Promise
Operation ID
restoreAppointment
Required scopes
appointments:write
Conditional scopes
appointments:delegated:write
SDK parameters
id: stringoptions: AppointmentMutationOptions
Path request fields
id: string
Header request fields
If-Match: string
Success
200 Appointment envelope

Convenience helpers

These typed helpers compose mapped operations. They do not grant scopes or bypass API limits.

appointments.pages

Iterate cursor pages with a bounded PaginationOptions policy.

client.appointments.pages(options: CalendarListOptions, pagination?: PaginationOptions)
Returns AsyncGenerator

Errors and transport metadata

HTTP failures reject with TeamGridApiError, including the status, stable error documents, request ID, optional retry delay, and transport metadata. Local validation, routing, timeout, response-size, and pagination failures reject withTeamGridClientError and a stable client error code. Successful envelopes expose non-enumerable transport metadata.

See pagination and errors andclient configuration for handling guidance.

Stable documentation · Developer Platform · Reviewed 2026-08-10Edit this page ↗
Documentation feedbackWas this page useful?
Esc

Search TeamGrid Developer

Find guides, concepts and every API operation.