curl --request POST \
--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,
"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 \
--header 'AccessKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"Name": "<string>",
"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 added
The secret that will be added
Was this page helpful?