Skip to main content
POST
/
compute
/
script
/
{id}
/
variables
/
{variableId}
Update Variable
curl --request POST \
  --url https://api.bunny.net/compute/script/{id}/variables/{variableId} \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "DefaultValue": "<string>",
  "Required": true
}
'
{
  "Id": 123,
  "Required": true,
  "Name": "<string>",
  "DefaultValue": "<string>"
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

id
integer<int64>
required

The ID of the script that contains the variable

variableId
integer<int64>
required

The ID of the Environment Variable that will be updated

Body

The variable that will be added

DefaultValue
string | null
Maximum string length: 4096
Required
boolean | null

Response

The script with the requested ID

Id
integer<int64>
required
Required
boolean
required
Name
string | null
DefaultValue
string | null