{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/citi/main/json-schema/citi-blocks-and-filters-create-response-schema.json",
  "title": "Block and filters response",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-blocks-filters-api-openapi.yml#/components/schemas/Blocks-And-Filters-Create-Response",
  "allOf": [
    {
      "$ref": "#/$defs/Blocks-And-Filters-Response"
    },
    {
      "type": "object",
      "properties": {
        "filter": {
          "$ref": "#/$defs/Filter-Ids"
        }
      }
    }
  ],
  "$defs": {
    "Blocks-And-Filters-Response": {
      "type": "object",
      "title": "blocks response",
      "required": [
        "id",
        "status",
        "description"
      ],
      "properties": {
        "id": {
          "description": "Block/Filter ID generated against a request",
          "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$",
          "type": "string",
          "title": "id"
        },
        "status": {
          "description": "Request Status",
          "type": "string",
          "title": "status"
        },
        "description": {
          "type": "string",
          "maxLength": 500,
          "description": "Staus description",
          "title": "description"
        }
      }
    },
    "Filter-Ids": {
      "type": "object",
      "title": "filter IDs",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "array",
          "maxItems": 1,
          "items": {
            "description": "Filter IDs generated against a request",
            "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$",
            "type": "string",
            "title": "id"
          }
        }
      }
    }
  }
}