TeamGriddeveloper
TeamGrid Developer

groups SDK client

5 typed @teamgrid/api-client methods for Administration, plus 1 convenience helper.

Client propertyclient.groups
Mapped operations5
API groupsAdministration

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

groups.list

Use this operation to list workspace groups. It returns only resources visible to the credential and applies the documented filters before producing a bounded, stable page. Required scopes, product permissions, sharing rules, workspace locks, and regional cell ownership are enforced for every request.

client.groups.list(options: ListOptions = {})
Return form
Promise
Operation ID
listGroups
Required scopes
groups:read
SDK parameters
options: ListOptions
Query request fields
cursor?: stringlimit?: integer
Success
200 Array<Group> envelope
Declared API errors
400401403429502503
POST/groups
Full API operation →

groups.create

Use this operation to create a workspace group. The server validates the complete payload and derives workspace ownership from the authenticated credential. Required scopes, product permissions, sharing rules, workspace locks, and regional cell ownership are enforced for every request. Use a stable Idempotency-Key when retrying so a transport timeout cannot create duplicate work.

client.groups.create(data: GroupCreate, options: MutationOptions = {})
Return form
Promise
Operation ID
createGroup
Required scopes
groups:write
SDK parameters
data: GroupCreateoptions: MutationOptions
Header request fields
Idempotency-Key: string
Request body
GroupCreateapplication/json
Success
201 Group envelope
Declared API errors
400401403409429502503
GET/groups/{id}
Full API operation →

groups.get

Use this operation to get a workspace group. 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.groups.get(id: string, options?: RequestOptions)
Return form
Promise
Operation ID
getGroup
Required scopes
groups:read
SDK parameters
id: stringoptions: RequestOptions
Path request fields
id: string
Success
200 Group envelope
Declared API errors
400401403404429502503
PATCH/groups/{id}
Full API operation →

groups.update

Use this operation to update a workspace group. Only documented mutable fields are accepted; omitted fields retain their current values unless the request schema states replacement semantics. Required scopes, product permissions, sharing rules, workspace locks, and regional cell ownership are enforced for every request. Send the latest strong ETag in If-Match; stale revisions fail without overwriting a concurrent change.

client.groups.update(id: string, data: GroupUpdate, options: AdministrationMutationOptions)
Return form
Promise
Operation ID
updateGroup
Required scopes
groups:write
SDK parameters
id: stringdata: GroupUpdateoptions: AdministrationMutationOptions
Path request fields
id: string
Header request fields
If-Match: string
Request body
GroupUpdateapplication/json
Success
200 Group envelope
DELETE/groups/{id}
Full API operation →

groups.remove

Use this operation to delete a workspace group. The operation preserves TeamGrid lifecycle and permission rules instead of bypassing them with a direct data deletion. Required scopes, product permissions, sharing rules, workspace locks, and regional cell ownership are enforced for every request. Send the latest strong ETag in If-Match; stale revisions fail without overwriting a concurrent change.

client.groups.remove(id: string, options: AdministrationMutationOptions)
Return form
Promise
Operation ID
deleteGroup
Required scopes
groups:write
SDK parameters
id: stringoptions: AdministrationMutationOptions
Path request fields
id: string
Header request fields
If-Match: string
Success
204

Convenience helpers

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

groups.pages

Iterate cursor pages with a bounded PaginationOptions policy.

client.groups.pages(options: ListOptions = {}, 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.