Update Visibility
Set who can reach an application, independently for its production URL and its preview URLs. Each is public (anyone with the link) or private (only members of the app's owning account, enforced at the edge). New apps default to prod_visibility: public and preview_visibility: private. See the Visibility guide for how enforcement works — and note this is not Endpoint Auth (your own login for your end-users); visibility controls which Ngris users can reach the app at all.
Requires the caller's account to have Endpoints write permission (same authorization as other application mutations — an API key or a dashboard session). Available on every app; no entitlement or plan gate.
Request body
This is a partial update: send one or both fields; an omitted field keeps its current value. At least one field is required.
public or private — access to the app's production URL.public or private — access to the app's preview URLs.Response (200 OK)
Returns the updated application object, including both prod_visibility and preview_visibility.
Errors
{"error":"no visibility fields provided"}), or a value is neither public nor private.uuid in the active account.