Skip to main content
PUT
/
applications
/
{id}
Update application
curl --request PUT \
  --url https://api.sevalla.com/v2/applications/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "display_name": "My Application",
  "auto_deploy": true,
  "default_branch": "main",
  "hibernation_enabled": false,
  "hibernate_after_seconds": 3600,
  "build_path": ".",
  "build_type": "nixpacks",
  "docker_file_path": "Dockerfile",
  "docker_context": "."
}
'
{
  "app": {
    "id": "fb5e5168-4281-4bec-94c5-0d1584e9e657",
    "name": "my-app",
    "status": "deploymentSuccess",
    "updated_at": 1738195200000,
    "build_path": "/",
    "build_type": "nixpacks",
    "docker_file_path": "Dockerfile",
    "docker_context": ".",
    "display_name": "My Application",
    "auto_deploy": true,
    "default_branch": "main",
    "hibernation_enabled": false,
    "hibernate_after_seconds": 3600
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token in the Authorization header.

Path Parameters

id
string<uuid>
required
Example:

"fb5e5168-4281-4bec-94c5-0d1584e9e657"

Body

application/json
display_name
string

Display name of the application

Required string length: 1 - 64
Example:

"My Application"

auto_deploy
boolean

Whether auto deploy is enabled

Example:

true

default_branch
string

Default git branch

Minimum string length: 1
Example:

"main"

hibernation_enabled
boolean

Whether hibernation is enabled

Example:

false

hibernate_after_seconds
integer

Seconds before hibernation

Required range: x <= 9007199254740991
Example:

3600

build_path
string

Build path

Example:

"."

build_type
enum<string>

Build type

Available options:
dockerfile,
pack,
nixpacks
Example:

"nixpacks"

docker_file_path
string

Dockerfile path

Example:

"Dockerfile"

docker_context
string

Docker context path

Example:

"."

Response

Default Response

app
object
required