update site.md

Update Site

Infra API · Sites

PATCH https://app.mk.io/api/v1/projects/{project_name}/infra/sites/{name}

Update a site. To learn more about sites, read Site Concept.

RBAC Capability Required: infra.site.update

Authentication

Path parameters

Name Type Required Description
project_name string Yes
name string Yes

Request body

Content type: application/json

Example request

curl -X PATCH "https://app.mk.io/api/v1/projects/{project_name}/infra/sites/{name}" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
  "metadata": {
    "displayName": "string",
    "labels": {
      "key": "string"
    }
  },
  "spec": {
    "geolocation": {
      "coordinates": [
        0
      ]
    },
    "routes": [
      {
        "defaultTransport": {
          "cidr": "239.0.0.1/24",
          "type": "UDP"
        },
        "networkName": "internet"
      }
    ]
  }
}'

Responses

200 — The updated site

400 — Bad Request

401 — Unauthorized

403 — Forbidden

404 — Not Found

429 — Too Many Requests

500 — Internal Server Error


Source spec: infrastructure-api · operationId: [patch]_/api/v1/projects/{project_name}/infra/sites/{name}