Workspaces¶
The Workspaces resource covers listing, iterating, creating, fetching, updating, and deleting workspaces.
Initialization¶
List Workspaces¶
Method¶
Example¶
result = client.workspaces.all(page=1)
print(result.page, result.total, result.has_more)
for workspace in result.items:
print(workspace.id, workspace.name)
Notes¶
- The returned collection is
items, notdata PaginatedWorkspacesexposespage,limit,total, andhas_more
Official Reference¶
Iterate Workspaces¶
Create Workspace¶
Method¶
Example¶
Official Reference¶
Get Workspace¶
Method¶
Example¶
workspace = client.workspaces.get("ws_123")
print(workspace.name)
print(len(workspace.members), len(workspace.invites))
Official Reference¶
Update Workspace¶
Method¶
Example¶
Notes¶
- The SDK currently treats this endpoint as returning no value
Official Reference¶
Delete Workspace¶
Method¶
Official Reference¶
Models¶
Workspace¶
Workspace
dataclass
¶
Represents a Tally workspace.
PaginatedWorkspaces¶
PaginatedWorkspaces
dataclass
¶
Represents a paginated response of workspaces.