Skip to content

Commit 84a7326

Browse files
committed
docs(api): metadata-api packages section — bare POST installs, publish moved to /packages/publish
The doc described the pre-#3610 collision state: bare POST /packages as marketplace publish. That path is install (409 duplicate guard, overwrite opt-in); publish now lives at POST /packages/publish. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LX9ut3MK3KykE11S9bJmv5
1 parent 3592459 commit 84a7326

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

content/docs/api/metadata-api.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,16 @@ List installed packages.
7070

7171
### `POST /packages`
7272

73-
Publish a package (manifest + metadata) to the package registry.
73+
Install a package from its manifest (SDK: `client.packages.install`). Re-installing an
74+
already-installed `id` returns **409 Conflict** unless `overwrite: true`.
75+
76+
**Body**: `{ manifest: { id: "plugin-auth", name: "Plugin Auth", version: "1.0.0", ... }, settings?: { ... }, enableOnInstall?: true, overwrite?: false }`
77+
**Response**: `{ package: { id: "plugin-auth", version: "1.0.0", ... }, message?: "..." }`
78+
79+
### `POST /packages/publish`
80+
81+
Publish a package (manifest + metadata) to the package marketplace registry. This is
82+
publisher tooling, not part of the app SDK surface.
7483

7584
**Body**: `{ manifest: { id: "plugin-auth", name: "Plugin Auth", version: "1.0.0", ... }, metadata: { objects: [...], views: [...], ... } }`
7685
**Response**: `{ success: true, message: "...", package: { id: "plugin-auth", version: "1.0.0" } }`

0 commit comments

Comments
 (0)