Skip to main content
POST
/
api
/
workspaces
/
{id}
/
env
Update environment variables for a workspace. Changes take effect immediately if the workspace is running.
curl --request POST \
  --url https://api.rigbox.dev/api/workspaces/{id}/env \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "env_vars": {}
}'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Workspace ID

Body

application/json
env_vars
object
required

Response

200 - application/json

Environment variables updated

Generic success envelope — used across all domains.

message
string
required