{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropto-run/json-schema/dropto-run-promote-deploy-response-schema.json",
  "title": "PromoteDeployResponse",
  "description": "Response of `POST /sites/{siteId}/deploys/{deployId}/promote`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dropto-run-deploys-api-openapi.yml#/components/schemas/PromoteDeployResponse",
  "properties": {
    "deployId": {
      "description": "ULID of the deploy that is now live.",
      "type": "string"
    },
    "edge": {
      "description": "`live` when the edge has the deploy, `pending` when the rollback is committed but the edge\nwrite did not land yet; it gets there on its own, as on `complete`.",
      "type": "string"
    },
    "fileCount": {
      "description": "Files in the promoted deploy.",
      "format": "int32",
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ]
    },
    "status": {
      "description": "Always `live` on success.",
      "type": "string"
    },
    "totalBytes": {
      "description": "Its total size in bytes.",
      "format": "int64",
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ]
    },
    "url": {
      "description": "Public URL the site answers on. Content may take up to a minute to reach every edge.",
      "type": "string"
    }
  },
  "required": [
    "deployId",
    "status",
    "url",
    "fileCount",
    "totalBytes",
    "edge"
  ],
  "type": "object"
}