Move or delete artifacts in bulk
artifact_bulkApply move or delete independently to at most 200 artifacts (artifactIds: ids, aliases or page URLs). move needs its destination: folder (an id, or a slug in the artifacts' workspace, else in team, else your personal folders), or folder: null to unfile them. delete moves each to the trash for 30 days and returns their dates; it takes no folder or team. Workspace items need why; a revision entry per item is optional and refuses (CONFLICT) that item if it changed since. Returns every safe failure ID and count; never retries destructive failures.
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 | move with a folder slug: the team the folder belongs to. | |
| action | Yes | ||
| folder | No | move only, and required: the destination folder (an id, or a slug in the artifacts' workspace, else in team, else your personal folders), or null to unfile them. | |
| artifactIds | Yes | At most 200 artifacts, each named once. | |
| expectedWorkspaceRevisions | No | Optional, per artifact (keyed as named in artifactIds): refuse (CONFLICT) that item if it changed since. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| failed | Yes | ||
| deleted | No | ||
| succeeded | Yes |