Skip to main content
POST
/
workspace
/
{workspace_id}
/
static_host
/
{static_host}
/
build
/
{build_id}
/
env
Update static hosting environment
curl --request POST \
  --url https://your-xano-instance.xano.io/api:meta/workspace/{workspace_id}/static_host/{static_host}/build/{build_id}/env \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "env": "prod"
}'
{}

Authorizations

Authorization
string
header
required

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

Path Parameters

workspace_id
integer<int64>
required
static_host
string
required
build_id
integer<int64>
required

Body

env
enum<string>
required
Available options:
prod,
dev

Response

Success!

The response is of type object.