TeamGriddeveloper
TeamGrid Developer

plannedWork SDK client

3 typed @teamgrid/api-client methods for Planned Work, plus 1 convenience helper.

Client propertyclient.plannedWork
Mapped operations3
API groupsPlanned Work

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/planned-work
Full API operation →

plannedWork.list

Returns a stable ascending keyset page from the credential cell. The cursor is bound to the workspace and complete filter set. Authorization filtering can produce an empty page with a non-null cursor.

client.plannedWork.list(options: PlannedWorkListOptions)
Return form
Promise
Operation ID
listPlannedWork
Required scopes
planned-work:read
SDK parameters
options: PlannedWorkListOptions
Query request fields
cursor?: stringlimit?: integerstart: stringend: stringtaskId?: stringprojectId?: stringuserId?: string
Success
200 Array<PlannedWork> envelope
Declared API errors
400401403409429502503
GET/tasks/{id}/planned-work
Full API operation →

plannedWork.getForTask

Returns the task schedule and a strong revision ETag. Reads fail closed while a replacement overlaps the task.

client.plannedWork.getForTask(id: string, options?: RequestOptions)
Return form
Promise
Operation ID
getTaskPlannedWork
Required scopes
planned-work:read
SDK parameters
id: stringoptions: RequestOptions
Path request fields
id: string
Success
200 TaskPlannedWork envelope
Declared API errors
400401403404409429502503
PUT/tasks/{id}/planned-work
Full API operation →

plannedWork.replaceForTask

Atomically compares the strong task schedule revision and accepts a credential-owned asynchronous replacement. The same Idempotency-Key and payload replay the original operation; a different payload conflicts.

client.plannedWork.replaceForTask(id: string, data: PlannedWorkReplacement, options: PlannedWorkReplaceOptions)
Return form
Promise
Operation ID
replaceTaskPlannedWork
Required scopes
planned-work:write
SDK parameters
id: stringdata: PlannedWorkReplacementoptions: PlannedWorkReplaceOptions
Path request fields
id: string
Header request fields
If-Match: stringIdempotency-Key: string
Request body
PlannedWorkReplacementapplication/json
Success
202 PlannedWorkOperation envelope

Convenience helpers

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

plannedWork.pages

Iterate cursor pages with a bounded PaginationOptions policy.

client.plannedWork.pages(options: PlannedWorkListOptions, 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.