{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ploi-cloud/json-schema/ploi-cloud-post-api-v1-infrastructure-apply-response-schema.json",
  "title": "PostApiV1InfrastructureApplyResponse",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/ploi-cloud-openapi-generated.yml#/components/schemas/PostApiV1InfrastructureApplyResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "application_id": {
      "type": "integer"
    },
    "application_name": {
      "type": "string"
    },
    "team": {
      "type": "string"
    },
    "dry_run": {
      "type": "boolean"
    },
    "changes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "structured_changes": {
      "type": "object",
      "properties": {
        "application": {
          "type": "object",
          "properties": {
            "action": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          }
        },
        "domains": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "action": {
                "type": "string"
              },
              "domain": {
                "type": "string"
              }
            }
          }
        },
        "secrets": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "action": {
                "type": "string"
              },
              "key": {
                "type": "string"
              }
            }
          }
        },
        "services": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "action": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          }
        },
        "managed_databases": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "action": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          }
        },
        "object_storage": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "action": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "errors": {
      "type": "array",
      "items": {}
    },
    "needs_deployment": {
      "type": "boolean"
    },
    "auto_deploy_enabled": {
      "type": "boolean"
    },
    "deployment_id": {
      "type": "integer"
    }
  }
}