Replace an app's details
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
name*string1 <= length <= 63description?stringlength <= 500""sourceId*stringuuidrenderType*RenderType"helm""kustomize""plain"defaultValues?Settings for the render, as plain data.
services?array<>items <= 50teamId?stringThe team that owns the app. Its members read the app and its deployments. Setting it takes reading the team. On create, absent means no team; on update, absent or null keeps the app's team and an empty string takes the app out of it.
The updated app.
application/json- response
id*stringuuidname*stringdescription*stringsourceId*stringuuidsourceName*stringsourceKind*SourceKind"git""oci"renderType*RenderType"helm""kustomize""plain"defaultValues*Settings for the render, as plain data.
services*array<>owners*array<string>User ids of the app's owners, oldest first.
teamId?stringThe team that owns the app, or null for none. Members of the team read the app and its deployments (ADR 0003); an app with no team is reached only through grants and ownership.
deploymentCount*integerDeployments that hold the app. A caller who reads the app reads each of them.
createdAt*stringdate-timeupdatedAt*stringdate-timecurl -X PUT 'https://wardn.example.com/api/v1/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "sourceId": "797f5a94-3689-4ac8-82fd-d749511ea2b2", "renderType": "helm"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "sourceId": "797f5a94-3689-4ac8-82fd-d749511ea2b2", "sourceName": "string", "sourceKind": "git", "renderType": "helm", "defaultValues": {}, "services": [ { "name": "string", "port": 1, "protocol": "http" } ], "owners": [ "string" ], "teamId": "string", "deploymentCount": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Delete an app DELETE
An app that a deployment still runs cannot be deleted.
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.