Skip to main content
POST
/
compute
/
script
/
{id}
/
secrets
/
{secretId}
Update Secret
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>"
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

id
integer<int64>
required

The ID of the script that will have the secret updated

secretId
integer<int64>
required

The ID of the secret that will be updated

Body

The secret that will be updated

Secret
string | null
Maximum string length: 4096

Response

The script with the requested ID

Id
integer<int64>
required
LastModified
string<date-time>
required
Name
string | null