{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-policy-attachment-create-request-schema.json",
  "title": "PolicyAttachmentCreateRequest",
  "description": "Request body for creating a policy attachment.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-policy-engine-api-openapi.yml#/components/schemas/PolicyAttachmentCreateRequest",
  "properties": {
    "keys": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "Key aliases or patterns this attachment applies to.",
      "title": "Keys"
    },
    "models": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "Model names or patterns this attachment applies to.",
      "title": "Models"
    },
    "policy_name": {
      "description": "Name of the policy to attach.",
      "title": "Policy Name",
      "type": "string"
    },
    "scope": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Use '*' for global scope (applies to all requests).",
      "title": "Scope"
    },
    "tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "Tag patterns this attachment applies to. Supports wildcards (e.g., health-*).",
      "title": "Tags"
    },
    "teams": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "Team aliases or patterns this attachment applies to.",
      "title": "Teams"
    }
  },
  "required": [
    "policy_name"
  ],
  "type": "object"
}