{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/highlevel/json-schema/highlevel-get-brand-boards-by-location-success-dto-schema.json",
  "title": "GetBrandBoardsByLocationSuccessDTO",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/highlevel-brand-boards-api-openapi.yml#/components/schemas/GetBrandBoardsByLocationSuccessDTO",
  "type": "object",
  "properties": {
    "brandBoards": {
      "description": "Array of brand boards for the location",
      "type": "array",
      "items": {
        "$ref": "#/$defs/BrandBoardListItemDTO"
      }
    },
    "totalCount": {
      "type": "number",
      "description": "Total number of brand boards matching the query"
    }
  },
  "required": [
    "brandBoards",
    "totalCount"
  ],
  "$defs": {
    "BrandBoardListItemDTO": {
      "type": "object",
      "properties": {
        "_id": {
          "type": "string",
          "description": "Brand board ID"
        },
        "name": {
          "type": "string",
          "description": "Brand board name"
        },
        "updatedAt": {
          "type": "string",
          "description": "Last update timestamp"
        },
        "default": {
          "type": "boolean",
          "description": "Whether this is the default brand board for the location"
        },
        "meta": {
          "description": "Metadata about the brand board",
          "allOf": [
            {
              "$ref": "#/$defs/MetaData"
            }
          ]
        }
      },
      "required": [
        "_id",
        "name",
        "updatedAt"
      ]
    },
    "MetaData": {
      "type": "object",
      "properties": {
        "updatedBy": {
          "type": "string",
          "description": "User ID who last updated the brand board"
        },
        "lastAction": {
          "type": "string",
          "description": "Last action performed on the brand board"
        },
        "sourceId": {
          "type": "string",
          "description": "Source brand board ID if created from a template"
        },
        "sourceType": {
          "type": "string",
          "description": "How the brand board was created",
          "enum": [
            "template",
            "blank",
            "snapshot"
          ]
        }
      }
    }
  }
}