Update folder
folder_updateChange a workspace folder's audience, or give any folder a new slug (newSlug), one per call: folder is its id (any kind: personal, team or workspace), or its slug: in workspaceId when given, else in team, else one of your personal folders. The workspace is the folder's own. A workspace folder's change needs why; expectedWorkspaceRevision is optional: send the folder's workspace_revision to refuse (CONFLICT) if it changed since. Sharing exposes the folder to external workspace members without changing current child artifacts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters. | |
| team | No | With a folder slug: the team (slug or id) it belongs to. | |
| folder | Yes | The folder: its id (any kind), or its slug: in workspaceId when given, else in team, else one of your personal folders. | |
| newSlug | No | The folder's new slug. | |
| audience | No | A workspace folder's new audience: internal or shared (sharing shows the folder to external members; its files keep theirs). | |
| workspaceId | No | With a folder slug: the workspace it is in. | |
| expectedWorkspaceRevision | No | Optional, a workspace folder's: refuse (CONFLICT) if the folder changed since this workspace_revision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes |