cURL
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, "Name": "<string>", "Required": true, "DefaultValue": "<string>" }
API Access Key authorization header
The ID of the script that contains the variable
The ID of the Environment Variable that will be updated
The variable that will be added
4096
The script with the requested ID
Was this page helpful?