Team Space folders
import { Aside } from ‘@astrojs/starlight/components’;
Team Space folders are shared folders inside a Teams workspace. Every
member can see and move artifacts into them; only owner and admin can
create, rename, or delete folders.
Scopes
Section titled “Scopes”| Scope | Visible to | Folder creation | API prefix |
|---|---|---|---|
| Team Space | All workspace members | owner / admin only | /v1/workspaces/{id}/folders |
| Personal | Owner (+ linked accounts) | Owner | /v1/folders |
Endpoints
Section titled “Endpoints”GET /v1/workspaces/{workspaceId}/foldersPOST /v1/workspaces/{workspaceId}/foldersGET /v1/workspaces/{workspaceId}/folders/{folderId}PATCH /v1/workspaces/{workspaceId}/folders/{folderId}DELETE /v1/workspaces/{workspaceId}/folders/{folderId}GET /v1/workspaces/{workspaceId}/folders/by-path/{path}POST /v1/workspaces/{workspaceId}/artifacts/{artifactId}/moveAll routes require workspace membership. Create, patch, and delete require
owner or admin.
List folders
Section titled “List folders”GET /v1/workspaces/{workspaceId}/folders?parent_id={folderId}Authorization: Bearer {token}Omit parent_id for top-level folders. Each item includes artifact_count,
subfolder_count, visibility, and parent_id.
Create a folder
Section titled “Create a folder”POST /v1/workspaces/{workspaceId}/foldersAuthorization: Bearer {token}Content-Type: application/json
{ "name": "Q1 Reports", "slug": "q1-reports", "description": "Quarterly dashboards", "parent_id": null, "visibility": "inherit"}visibility options:
| Value | Effect |
|---|---|
inherit | Artifacts inherit the folder’s workspace visibility. Default. |
private | Only explicit collaborators. |
workspace | All workspace members. |
public | Open web access. |
Slugs are unique per parent level within the workspace.
Move an artifact into a folder
Section titled “Move an artifact into a folder”Any workspace member can file a workspace artifact:
POST /v1/workspaces/{workspaceId}/artifacts/{artifactId}/moveAuthorization: Bearer {token}Content-Type: application/json
{ "folder_id": "fld_abc" }Pass "folder_id": null to remove from any folder.
Folder slugs appear in subdomain and namespaced URLs:
| Pattern | Example |
|---|---|
{ws}.shareout.site/{folder}/{artifact-slug} | acme.shareout.site/q1-reports/sales-dashboard |
shareout.site/@{ws}/{folder}/{artifact-slug} | shareout.site/@acme/q1-reports/sales-dashboard |
The slug in these URLs is the artifact’s human slug (display_slug), unique
per workspace.
Errors
Section titled “Errors”| Code | Meaning |
|---|---|
403 ADMIN_REQUIRED | Member tried to create/delete a folder. |
409 SLUG_CONFLICT | Slug already exists at this folder level. |