Skip to main content
POST
/
compute
/
script
/
{id}
/
code
Set Code
curl --request POST \
  --url https://api.bunny.net/compute/script/{id}/code \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "Code": "<string>"
}
'
{
  "ErrorKey": "<string>",
  "Field": "<string>",
  "Message": "<string>"
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

id
integer<int64>
required

The ID of the code for which the script that will be returned

Body

Code
string | null

Response

The code was successfully uploaded