curl --request PUT \
--url https://api.bunny.net/compute/script/{id}/variables \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"Name": "<string>",
"Required": true,
"DefaultValue": "<string>"
}
'{
"Id": 123,
"Required": true,
"Name": "<string>",
"DefaultValue": "<string>"
}The variable was created
curl --request PUT \
--url https://api.bunny.net/compute/script/{id}/variables \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"Name": "<string>",
"Required": true,
"DefaultValue": "<string>"
}
'{
"Id": 123,
"Required": true,
"Name": "<string>",
"DefaultValue": "<string>"
}API Access Key authorization header
The ID of the script which will have the variable upserted
The variable that will be upserted
Was this page helpful?