cURL
curl --request PUT \ --url https://api.bunny.net/compute/script/{id}/secrets \ --header 'AccessKey: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "Name": "<string>", "Secret": "<string>" } '
{ "Id": 123, "Name": "<string>", "LastModified": "2023-11-07T05:31:56Z" }
API Access Key authorization header
The ID of the script that will have the secret upserted
The secret that will be upserted
1 - 256
4096
A new secret was created
Was this page helpful?