Skip to main content
PUT
/
apps
/
{appId}
/
endpoints
/
{endpointId}
Update Application Endpoint
curl --request PUT \
  --url https://api.bunny.net/mc/apps/{appId}/endpoints/{endpointId} \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "displayName": "<string>",
  "cdn": {
    "isSslEnabled": true,
    "stickySessions": {
      "sessionHeaders": [
        "<string>"
      ],
      "enabled": true,
      "cookieName": "<string>"
    },
    "pullZoneId": 123,
    "portMappings": [
      {
        "containerPort": 32768,
        "exposedPort": 32768,
        "protocols": [
          "Tcp"
        ]
      }
    ]
  },
  "anycast": {
    "type": "IPv4",
    "portMappings": [
      {
        "containerPort": 32768,
        "exposedPort": 32768,
        "protocols": [
          "Tcp"
        ]
      }
    ]
  }
}
'
{
  "title": "<string>",
  "status": 123,
  "detail": "<string>",
  "instance": "<string>",
  "errors": [
    {
      "field": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

AccessKey
string
header
required

Please enter a valid personal API key.

Path Parameters

appId
string
required

The ID of the application

endpointId
string
required

The display name of the endpoint to update

Body

The updated endpoint configuration

displayName
string
required
Required string length: 1 - 50
cdn
object
anycast
object

Response

Endpoint was successfully updated.