{
  "name": "PromoteDeployment",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudSites.PromoteDeployment",
    "service": "sites"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "deploymentId": {
        "type": "string"
      },
      "revision": {
        "format": "uint64",
        "minimum": 0.0,
        "type": "integer"
      },
      "siteId": {
        "type": "string"
      }
    },
    "required": [
      "deploymentId",
      "revision",
      "siteId"
    ],
    "title": "PromoteDeploymentRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "EdgePropagationStatus": {
        "enum": [
          "COMPLETE",
          "PENDING",
          "FAILED"
        ],
        "type": "string"
      },
      "SiteDescription": {
        "properties": {
          "activeDeploymentId": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "platformHostname": {
            "type": "string"
          },
          "publicAccess": {
            "default": false,
            "type": "boolean"
          },
          "revision": {
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "siteId": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "platformHostname",
          "revision",
          "siteId"
        ],
        "type": "object"
      }
    },
    "properties": {
      "detail": {
        "type": [
          "string",
          "null"
        ]
      },
      "edgePropagation": {
        "$ref": "#/definitions/EdgePropagationStatus"
      },
      "site": {
        "$ref": "#/definitions/SiteDescription"
      }
    },
    "required": [
      "edgePropagation",
      "site"
    ],
    "title": "PromoteDeploymentResponse",
    "type": "object"
  }
}
