Set artifact visibility
artifact_share_policySet who beyond its home can read an artifact: private, link (anyone with the URL) or public (standalone only: listed). A workspace artifact takes private or link: internal editors; link makes it shared and needs no why; returns the URL.
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. Not needed to change only visibility; recorded when sent. At most 300 characters. | |
| artifactId | Yes | The artifact: its id, its alias (bare, ~agent/alias or _team/alias), or its page URL. | |
| visibility | Yes | Standalone: private (you and the teams it is shared with), link or public. Workspace: private or link. | |
| expectedWorkspaceRevision | No | Optional: refuse (CONFLICT) if the artifact changed since this workspaceRevision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artifact | Yes | ||
| shareUrl | Yes | ||
| visibility | Yes |