{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brixsignage-com/json-schema/brixsignage-com-layout-zone-schema.json",
  "title": "LayoutZone",
  "description": "A zone. Open: a whole-array write (`PUT /v1/layouts/{id}/zones` with `zones`, or `PATCH /v1/layouts/{id}`) stores each zone as sent, so other keys come back too.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brixsignage-com-layouts-api-openapi.yml#/components/schemas/LayoutZone",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "x": {
      "type": "number",
      "description": "Left edge, in layout pixels."
    },
    "y": {
      "type": "number"
    },
    "w": {
      "type": "number"
    },
    "h": {
      "type": "number"
    },
    "locked": {
      "type": "boolean"
    },
    "contentName": {
      "description": "Label of the bound content. Absent on the zone a new layout starts with.",
      "type": "string"
    },
    "content": {
      "description": "What the zone plays: a media file, playlist, schedule, app, web link or creative (`canvas`).",
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "media",
                "playlist",
                "schedule",
                "app",
                "link",
                "canvas"
              ]
            },
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "id",
            "name"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "zIndex": {
      "type": "number"
    },
    "ownerScope": {
      "type": "string",
      "enum": [
        "workspace",
        "org_unit",
        "location"
      ]
    },
    "ownerNodeId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "frame": {
      "description": "Paint style on a themed layout.",
      "type": "string",
      "enum": [
        "bare",
        "card",
        "accent",
        "glass"
      ]
    },
    "radius": {
      "description": "Corner radius in layout pixels.",
      "type": "number"
    },
    "role": {
      "description": "`logo`: the zone shows the Brand Kit logo instead of content.",
      "type": "string",
      "enum": [
        "logo"
      ]
    }
  },
  "required": [
    "id",
    "name",
    "x",
    "y",
    "w",
    "h",
    "locked"
  ],
  "additionalProperties": {}
}