PUT
/
static-sites
/
{id}
Update static site basic details
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": "18.16.0",
  "published_directory": "dist"
}'
{
  "static_site": {
    "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
    "display_name": "My static site",
    "auto_deploy": true,
    "default_branch": "main",
    "build_command": "npm run build",
    "node_version": "20.2.0",
    "published_directory": "dist",
    "updated_at": 1695300630620,
    "status": "deploymentInProgress"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required
Example:

"54fb80af-576c-4fdc-ba4f-b596c83f15a1"

Body

application/json
display_name
string
Example:

"My static site"

auto_deploy
boolean
Example:

true

default_branch
string
Example:

"main"

build_command
string | null
Example:

"npm run build"

node_version
enum<string> | null
Available options:
16.20.0,
18.16.0,
20.2.0
Example:

"18.16.0"

published_directory
string | null
Example:

"dist"

Response

Static site updated successfully

static_site
object
required