Update app
Changed onAll fields are optional. labels and layers replace the entire value. env_vars performs a deep merge with existing variables. config replaces the entire deploy config (no deep merge).
Updating layers or env_vars will restart running isolates.
Request
- Base URLhttps://api.deno.com
- AuthHTTP bearer
Path parameters
The app ID or slug. App slugs must be 3–32 characters long, may contain only lowercase letters, numbers, and hyphens, cannot contain underscores, must not start or end with a hyphen, must not have consecutive hyphens in positions 3 and 4, and cannot be a reserved slug. App IDs are UUIDs.
Request body
Example request
{
"labels": {
"custom.customer_id": "cust_123",
"custom.environment": "production",
"custom.regions": [
"us-east",
"eu-west"
]
},
"env_vars": [
{
"id": "00000000-0000-0000-0000-000000000000",
"value": "postgres://prod-host/db"
}
],
"config": {
"framework": "nextjs",
"install": "npm install",
"build": "npm run build"
}
}Response
OK
Example response
{
"id": "00000000-0000-0000-0000-000000000000",
"slug": "my-customer-app",
"labels": {
"custom.customer_id": "cust_123",
"custom.environment": "production"
},
"layers": [
{
"id": "lyr_abc123",
"slug": "shared-secrets"
}
],
"env_vars": [
{
"id": "00000000-0000-0000-0000-000000000000",
"key": "APP_NAME",
"value": "My Customer App",
"secret": false,
"contexts": "all"
}
],
"config": {
"framework": "nextjs",
"install": "npm install",
"build": "npm run build"
},
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}Changes
- info
the
//request property's maxLength was increased from65536to128000
- info
- breaking
the
/request property type changed from no type tostring - breaking
the
//request property type changed from no type tostring - breaking
the
/response's property type changed from no type tostringfor status - breaking
the
//response's property type changed from no type tostringfor status
- breaking