Skip to main content

Workgroup

Workgroup Object

FieldTypeDescription
idsnowflakethe workgroup's id
organisation_idsnowflakethe workgroup's organisation id
namestringthe workgroup's name (max 50 characters)
descriptionstringa description of the workgroup

Get Workgroup

GET /workgroups/{workgroup.id}

Returns the workgroup object for the specified id.

  • Auth: required (OpenID Connect bearer token)
  • Permissions: caller must be a member of the owning organisation
Error Responses
Status CodeDescription
404Not found (workgroup does not exist)
403Forbidden (caller is not a member)

Update Workgroup

PATCH /workgroups/{workgroup.id}

Partially update a workgroup. Only name and description are accepted and will be updated if provided.

  • Request body: partial workgroup object (e.g. { "name": "New name", "description": "..." })
  • Auth: required
  • Permissions: caller must have MANAGE_WORKGROUPS on the owning organisation
Error Responses
Status CodeDescription
400Bad request (invalid input or missing related organisation)
403Forbidden (insufficient permissions)

Delete Workgroup

DELETE /workgroups/{workgroup.id}

Deletes the workgroup and removes related teams, team members and permission grants.

  • Auth: required
  • Permissions: caller must have MANAGE_WORKGROUPS
Error Responses
Status CodeDescription
400Bad request (invalid workgroup or organisation)
403Forbidden (insufficient permissions)