cURL
curl --request POST \ --url https://api.bunny.net/compute/script/{id} \ --header 'AccessKey: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "Name": "<string>", "ScriptType": 0 } '
{ "Id": 123, "Name": "<string>", "LastModified": "2023-11-07T05:31:56Z", "ScriptType": 0, "CurrentReleaseId": 123, "EdgeScriptVariables": [ { "Id": 123, "Name": "<string>", "Required": true, "DefaultValue": "<string>" } ], "Deleted": true, "LinkedPullZones": [ { "Id": 123, "PullZoneName": "<string>", "DefaultHostname": "<string>" } ], "Integration": { "IntegrationId": 123, "RepositorySettings": { "Id": 123, "Name": "<string>", "Private": true, "TemplateUrl": "<string>" }, "DeployConfiguration": { "Branch": "<string>", "InstallCommand": "<string>", "BuildCommand": "<string>", "EntryFile": "<string>", "CreateWorkflow": true } }, "DefaultHostname": "<string>", "SystemHostname": "<string>", "DeploymentKey": "<string>", "RepositoryId": 123, "IntegrationId": 123, "MonthlyCost": 123, "MonthlyRequestCount": 123, "MonthlyCpuTime": 123 }
API Access Key authorization header
The ID of the script that will be updated
The configuration that should be applied to the script
100
0 = DNS 1 = CDN 2 = Middleware
0
1
2
The script with the requested ID
Show child attributes
Was this page helpful?