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,
"LastModified": "2023-11-07T05:31:56Z",
"Name": "<string>"
}A new secret was created
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,
"LastModified": "2023-11-07T05:31:56Z",
"Name": "<string>"
}API Access Key authorization header
The ID of the script that will have the secret upserted
The secret that will be upserted
Was this page helpful?