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