Skip to main content
PATCH
/
apps
/
{appId}
Patch Application
curl --request PATCH \
  --url https://api.bunny.net/mc/apps/{appId} \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "runtimeType": "Shared",
  "autoScaling": {
    "min": 1,
    "max": 10
  },
  "regionSettings": {
    "allowedRegionIds": [
      "DE",
      "UK",
      "US"
    ],
    "requiredRegionIds": [
      "DE"
    ],
    "maxAllowedRegions": 5,
    "nodeSelectors": {}
  },
  "containerTemplates": [
    {
      "name": "<string>",
      "imageName": "<string>",
      "imageNamespace": "<string>",
      "imageTag": "<string>",
      "imageRegistryId": "<string>",
      "id": "<string>",
      "image": "<string>",
      "imageDigest": "<string>",
      "imagePullPolicy": "Always",
      "entryPoint": {
        "command": "<string>",
        "commandArray": [
          "<string>"
        ],
        "arguments": "<string>",
        "argumentsArray": [
          "<string>"
        ],
        "workingDirectory": "<string>"
      },
      "probes": {
        "startup": {
          "initialDelaySeconds": 10,
          "periodSeconds": 10,
          "timeoutSeconds": 7,
          "failureThreshold": 3,
          "successThreshold": 1,
          "httpGet": {
            "request": {
              "path": "<string>",
              "portNumber": 32768
            },
            "response": {
              "expectedStatusCode": "Continue"
            }
          },
          "tcpSocket": {
            "request": {
              "portNumber": 32768
            }
          },
          "grpc": {
            "request": {
              "portNumber": 32768,
              "serviceName": "<string>"
            }
          }
        },
        "readiness": {
          "initialDelaySeconds": 10,
          "periodSeconds": 10,
          "timeoutSeconds": 7,
          "failureThreshold": 3,
          "successThreshold": 1,
          "httpGet": {
            "request": {
              "path": "<string>",
              "portNumber": 32768
            },
            "response": {
              "expectedStatusCode": "Continue"
            }
          },
          "tcpSocket": {
            "request": {
              "portNumber": 32768
            }
          },
          "grpc": {
            "request": {
              "portNumber": 32768,
              "serviceName": "<string>"
            }
          }
        },
        "liveness": {
          "initialDelaySeconds": 10,
          "periodSeconds": 10,
          "timeoutSeconds": 7,
          "failureThreshold": 3,
          "successThreshold": 1,
          "httpGet": {
            "request": {
              "path": "<string>",
              "portNumber": 32768
            },
            "response": {
              "expectedStatusCode": "Continue"
            }
          },
          "tcpSocket": {
            "request": {
              "portNumber": 32768
            }
          },
          "grpc": {
            "request": {
              "portNumber": 32768,
              "serviceName": "<string>"
            }
          }
        }
      },
      "environmentVariables": [
        {
          "name": "<string>",
          "value": "<string>"
        }
      ],
      "endpoints": [
        {
          "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"
                ]
              }
            ]
          }
        }
      ],
      "volumeMounts": [
        {
          "name": "<string>",
          "mountPath": "<string>"
        }
      ]
    }
  ],
  "volumes": [
    {
      "name": "<string>",
      "size": 5
    }
  ]
}
'
{
  "id": "<string>"
}

Authorizations

AccessKey
string
header
required

Please enter a valid personal API key.

Path Parameters

appId
string
required

The ID of the application to update

Body

Partial application configuration with only the fields to update

name
string | null
Required string length: 1 - 100
runtimeType
enum<string>
Available options:
Shared,
Reserved
autoScaling
object
regionSettings
object
containerTemplates
object[] | null
volumes
object[] | null

Response

Application was successfully updated.

id
string