Skip to main content
PUT
/
static-sites
/
{id}
Update static site
curl --request PUT \
  --url https://api.sevalla.com/v2/static-sites/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "display_name": "My Static Site",
  "auto_deploy": true,
  "default_branch": "main",
  "build_command": "npm run build",
  "node_version": "20",
  "published_directory": "dist"
}
'
{
  "static_site": {
    "id": "fb5e5168-4281-4bec-94c5-0d1584e9e657",
    "display_name": "My Static Site",
    "auto_deploy": true,
    "default_branch": "main",
    "build_command": "npm run build",
    "node_version": "20",
    "published_directory": "dist",
    "updated_at": 1738195200000,
    "status": "ready"
  }
}

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 static site

Minimum string length: 1
Example:

"My Static Site"

auto_deploy
boolean

Whether auto deploy is enabled

Example:

true

default_branch
string

Default git branch

Minimum string length: 1
Example:

"main"

build_command
string | null

Build command

Example:

"npm run build"

node_version
string | null

Node.js version

Example:

"20"

published_directory
string | null

Published output directory

Example:

"dist"

Response

Default Response

static_site
object
required