`POST /api/marketplace/installs/{id}/update` — update an existing install to the latest version. Returns the updated install row.
const url = 'https://example.com/api/marketplace/installs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/update';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"resource_mappings":{"adopt_namespace":"example","mappings":[{"binding_name":"example","grant_write":true,"requirement_kind":"example","resource_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}],"namespace_entity":"example","schema":"example","target_project_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/marketplace/installs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/update \ --header 'Content-Type: application/json' \ --data '{ "resource_mappings": { "adopt_namespace": "example", "mappings": [ { "binding_name": "example", "grant_write": true, "requirement_kind": "example", "resource_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ], "namespace_entity": "example", "schema": "example", "target_project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } }'POST /api/marketplace/installs/{id}/update — update an existing install to
the latest version. Returns the updated install row.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Resource mappings submitted by the caller during install/update.
object
#1549 — the handle of an EXISTING database namespace of this workspace the
installer consents to adopt for the package’s namespace. The install records
the package handle as an alias of that row (its id, schema, resource,
isolation, bindings and read entitlements stay as they are) and applies the
package’s migrations into its schema. Refused by name unless the namespace is
shared, lives on the mapped postgresql resource, has the package’s isolation,
matches any schema named here, and its migration ledger agrees with the
package’s. None changes nothing.
object
#1313 / ADR 0072 — the in-guest binding NAME this mapping supplies
authority for, when the installer is filling a hole the ADR 0058 §7
trust gate left in a workflow member (PackageWorkflow:: required_bindings).
None is the pre-#1313 per-KIND mapping and changes nothing: the strip
runs, nothing is filled, the installed code node stays hermetic. The
STEP is never named here — it comes from the requirement the manifest
recorded, so an installer can supply authority but cannot choose which
node receives it.
A name matching no requirement in the package is REFUSED by name rather than ignored (#838 B16).
#1313 / ADR 0072 — the installer’s WRITE grant for binding_name.
The effective allow_write on the restored binding is the AND of this
grant and the requirement’s write_requested: a publisher may ASK for
the ADR 0058 P3 write allowlist, only the installing workspace can GIVE
it, and a grant on a hole that never asked stays read-only. None and
false are the same, safe answer.
#1549 — the entity the installed workflows bind the package’s entity-isolated
namespace with. A workflow member whose code node maps a binding to the
namespace’s postgresql resource is bound to the namespace through the same
service as PUT /api/db-namespaces/{id}/workflows/{workflow_id}. Refused by
name when the package has no namespace in play, when the namespace is not
entity-isolated, or when no workflow member would receive it. None leaves an
entity-isolated namespace’s workflows unbound (disclosed in the preview).
#1313 / ADR 0072 D4 — the postgresql schema this install applies a
per-workspace (schema_per_workspace) listing’s migrations into. The
catalog ships a neutral placeholder, so the effective schema is resolved
against the INSTALLING workspace: an existing namespace row for the
package’s handle always wins, and this field names the schema for a fresh
workspace. A value that contradicts the recorded one is refused by name —
one handle never owns two schemas.
None is the pre-#1313 shape and changes nothing: a listing that does not
opt in still fixes its literal in the manifest.
#1549 — the project of the installing workspace the package’s workflow members land in. The install RECORDS it (here, on the install row), so an update or a later optional member lands in the same project. Absent: the workspace’s only project, or a created “Marketplace Installs” project when it has none; a workspace with several projects is refused by name, never guessed. A project of another workspace, or one that differs from the project an existing install already places its workflows in, is refused by name.
Example generated
{ "resource_mappings": { "adopt_namespace": "example", "mappings": [ { "binding_name": "example", "grant_write": true, "requirement_kind": "example", "resource_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ], "namespace_entity": "example", "schema": "example", "target_project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }}Responses
Section titled “Responses”OK
A marketplace item installed into a workspace. Tracks the installed version, the local resources created (app, scripts, workflows), and the manifest hash for drift detection.
object
#1060 — when armed, the auto-update tick pulls newer non-withdrawn versions through the SAME service path the Update button uses, so it can skip none of that path’s signature / review-gate / licence checks.
Last tick attempt for this install (success or failure), so “never checked” and “checked and found nothing” stay distinguishable.
Why the last auto-update attempt failed; None after a success. Without this
a blocked review gate or a lapsed licence would leave the install silently
pinned to an old version while the toggle still reads “on”.
Optional bundle-member slugs explicitly selected by the user for this install. The default is empty, including manifests with no optional members. A user-owned re-install may add a member; an update cannot invent a choice. Binding admission reads these selections to identify the included members.
Existing workspace members linked by this receipt retain their source and bindings.
Issue #351 — whether a newer NON-withdrawn version than the installed one
exists (the “update available” signal), and that latest version string.
Populated only by list_installs_by_workspace via correlated subqueries;
absent in other projections that select INSTALL_COLUMNS, where
#[sqlx(default)] supplies false / None.
Example generated
{ "auto_update": true, "auto_update_checked_at": "2026-04-15T12:00:00Z", "auto_update_last_error": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "install_manifest_sha256": "example", "installed_app_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "installed_at": "2026-04-15T12:00:00Z", "installed_by": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "installed_node_type_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "installed_optional_members": [ "example" ], "installed_script_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "installed_workflow_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "item_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "latest_version": "example", "linked_member_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "resource_mappings": "example", "update_available": true, "updated_at": "2026-04-15T12:00:00Z", "version_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}The X-Workspace-Id header is not a UUID, the install is already at the latest version, a db_namespace choice is refused by name, a binding or write-grant hole is refused by name, or the body is not valid JSON
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Authentication required
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Account pending approval, the caller is not a member of the named workspace, the apps.declarative_sync feature is not enabled for the workspace plan, the caller is not a workspace owner/admin (ManageMembers), the newest version’s licence is missing or expired, the review gate refuses it, the paid package is unsigned, a binding-grant hole is refused, a resource belongs to another workspace, or the target project does not
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}No such install in the caller’s workspace — an install of another workspace is indistinguishable from an unknown id — or it disappeared under the materialisation lease, the item is gone, or no installable (non-withdrawn) version is available
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}The manifest of an App the update merges backend functions into changed while it ran; nothing was overwritten and the update can be run again
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}The request body is not sent as application/json
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}The JSON body does not match UpdateRequest (unknown field, wrong type)
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Structured server error
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}