Set whether an app can get a deployment for a pull request
Recorded in Activity as `app.previews_updated`.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
appId*stringuuidIdempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
enabled*booleanport?integer0 <= value <= 655350path?stringlength <= 200"/"The app's settings now.
application/json- response
enabled*booleanWhether the app can get a deployment for a pull request, and so an address on its cluster.
port*integerThe port of the app's Service the Ingress sends to. 0 picks the port named http, else the first.
path*stringThe path the app takes traffic on.
curl -X PUT 'https://wardn.example.com/api/v1/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/previews' \ -H 'Content-Type: application/json' \ -d '{ "enabled": true}'{ "enabled": true, "port": 0, "path": "string"}Get whether an app can get a deployment for a pull request GET
Whether the app can be reached on an address, and the port of its Service and the path it takes traffic on. The address itself comes from the cluster a deployment of the app is on.
Get an app's health checks GET
The checks an app has, set on the app so that a change applies in every deployment that runs it: the built-in checks, the organization's custom checks that apply to it, and its own HTTP, metric, CEL and Lua checks. With `deploymentId`, each check also says what it reads in that deployment now (`outc