Set the hosts a project's runs may reach.
Replaces the project's own list (empty clears it).
PUT/api/v1/projects/{id}/egress-hosts
Scopeconfig
Plain DNS host names only, lower-cased, repeats dropped, at most 32: no scheme, port, path, wildcard, IP address, single-label name or name for a private network (422 validation_failed, with what is wrong with each). The workspace's owner only, signed in as a person (the dashboard or a full CLI sign-in): a teammate is refused 403 owner_required, an API key or a limited CLI sign-in 403 session_required or 403 full_grant_required. A change is on the timeline with who made it, and applies to runs and previews sent after it: one already sent keeps the list it was sent with. The timeline records the key ID, action and outcome.
Path parameters.
idstringrequired
The project's id.
Headers.
Idempotency-Keystring
Retry the same request with the same key. Retry rules.
Body.
hostsarrayrequired
Plain DNS host names (npm.example.com): lower-cased, repeats dropped, at most 32. Empty clears the list. At most 64 items.
Response.
200 OK · JSON object
- 422 validation_failed
- Each schema error appears in
details.