Update Hosted API
Update a hosted API (merge-patch). Switching to public is refused
while a run route exists: an anonymous caller must not start runs
that spend the workspace’s budget.
Dark launch: requires the hosted_apis_access entitlement (402 hosted_apis_not_in_plan otherwise).
Authentication
Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.
Path parameters
Hosted API id (prefixed external id, api_...).
Headers
Request
Response headers
Response
The public host, <slug>.<hosted-api domain>; empty where no domain is configured.
consumer_key: every request presents a ck_ bearer minted for this
API. public: no credential; only read resolvers may be served, and
the per-IP limiter is the only bound.
Browser origins allowed to call the API (* for any). Empty for server-to-server only.
Runs the API’s run routes may start per UTC day; the spend ceiling behind a leaked consumer key.