app-installs
Per-customer app visibility and rollout overrides (TM-68-TM-78).
List app installs for the acting customer (TM-68)
Live app_installs rows of the acting customer, keyset-paginated. Does
not resolve overrides — this is the install-level row only, use
resolve_app_visibility (GET /v1/app-installs/resolve) for the
effective, override-aware visibility of one app.
query Parameters
cursorOpaque base64url keyset cursor over (created_at, id) descending. A
cursor that does not decode is 422 (API-39, API-40).
limitPage size. A value above the maximum is 422, never a silent clamp (API-38).
List app installs for the acting customer (TM-68) › Responses
A page of app installs of the acting customer.
next_cursorInstall an app for the acting customer (TM-68)
At most one live row per (customer_id, app); a second call while one
is already live is 409 conflict (AppInstallAlreadyExists, TM-68).
app must be a slug present in apps (§4.13); an unknown slug is
404, matching this table's other FK-into-system-vocabulary lookups
(TM-46).
Headers
Idempotency-KeyClient-generated UUIDv4. Optional in M0 (API-44). A repeat with the
same key and body returns the stored response; a repeat with a different
body is 409 idempotency-conflict (API-42).
Install an app for the acting customer (TM-68) › Request Body
app^[a-z0-9][a-z0-9-]{0… · requiredMust name a row in apps.slug (§4.13); unknown ⇒ 404.
metadataOpaque to Hatchmate; interpreted only by the installed app (TM-77).
version_channelvisibleInstall an app for the acting customer (TM-68) › Responses
The app was installed.
app^[a-z0-9][a-z0-9-]{0… · requiredcreated_atcustomer_ididmetadataupdated_atversion_channelvisibleResolve effective app visibility (TM-72, TM-73)
Independent per-field cascade over resource, group and install levels
(TM-73). Never 404s for an app with no live app_installs row —
that resolves to visible: false, source: not_installed (TM-76). An
app_group_id from another customer is treated identically to an
absent one (TM-75). app_group_id/resource_id under-specified
combinations are not an error; the levels they cannot address are
skipped (TM-74).
query Parameters
app^[a-z0-9][a-z0-9-]{0… · requiredThe apps.slug to resolve visibility for.
app_group_idresource_idResolve effective app visibility (TM-72, TM-73) › Responses
The resolved visibility.
sourceThe level that supplied visible (TM-73 step 4).
version_channelnull only when source is not_installed (TM-73 step 1).
visibleAlways a concrete boolean, never absent (TM-72).
Fetch an app install (TM-68)
Resolved by (customer_id, app_install_id) for the acting customer;
an absent, soft-deleted or foreign row is one 404 (API-11).
path Parameters
app_install_idFetch an app install (TM-68) › Responses
The app install.
app^[a-z0-9][a-z0-9-]{0… · requiredcreated_atcustomer_ididmetadataupdated_atversion_channelvisibleUpdate an app install's own visible/version_channel/metadata (TM-71)
Only supplied fields change; an omitted field leaves the column
unchanged — not the inherit-from-below NULL semantics of an
override row, since app_installs is the bottom of the fallback
chain (TM-71). Does not bump permissions_epoch (TM-71).
path Parameters
app_install_idHeaders
Idempotency-KeyClient-generated UUIDv4. Optional in M0 (API-44). A repeat with the
same key and body returns the stored response; a repeat with a different
body is 409 idempotency-conflict (API-42).
Update an app install's own visible/version_channel/metadata (TM-71) › Request Body
metadataversion_channelvisibleUpdate an app install's own visible/version_channel/metadata (TM-71) › Responses
The updated app install.
app^[a-z0-9][a-z0-9-]{0… · requiredcreated_atcustomer_ididmetadataupdated_atversion_channelvisibleList overrides on an app install (TM-69)
Live override rows scoped to this app install, keyset-paginated.
path Parameters
app_install_idquery Parameters
cursorOpaque base64url keyset cursor over (created_at, id) descending. A
cursor that does not decode is 422 (API-39, API-40).
limitPage size. A value above the maximum is 422, never a silent clamp (API-38).
List overrides on an app install (TM-69) › Responses
A page of overrides on this app install.
next_cursorCreate or update a project/resource-scoped override (TM-69, TM-70)
Idempotent create-or-update on the unique-per-scope collision (§4.15's
two partial indexes): the first call for a given
(app_group_id, resource_id) scope creates the row, a later call for
the same scope updates it in place — never a second row for one
continuing decision (TM-70). Must scope to a group or a resource,
never neither, and must set visible or version_channel, never
neither (422 validation-failed, TM-69's two CHECKs). Always
200 — this endpoint never distinguishes "created" from "updated" in
its response status, since the caller's request is the same either
way (see report's judgment-call note).
path Parameters
app_install_idHeaders
Idempotency-KeyClient-generated UUIDv4. Optional in M0 (API-44). A repeat with the
same key and body returns the stored response; a repeat with a different
body is 409 idempotency-conflict (API-42).
Create or update a project/resource-scoped override (TM-69, TM-70) › Request Body
app_group_idresource_idversion_channelvisibleCreate or update a project/resource-scoped override (TM-69, TM-70) › Responses
The override, created or updated.
app_group_idapp_install_idcreated_atidresource_idupdated_atversion_channelnull = inherit from the level below (TM-69).
visiblenull = inherit from the level below (TM-69).