{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ydb-qdrant-tech/json-schema/ydb-qdrant-tech-delete-points-request-schema.json",
  "title": "DeletePointsRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ydb-qdrant-tech-openapi.json#/components/schemas/DeletePointsRequest",
  "oneOf": [
    {
      "type": "object",
      "required": [
        "points"
      ],
      "properties": {
        "points": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PointId"
          },
          "minItems": 1
        }
      },
      "additionalProperties": false
    },
    {
      "type": "object",
      "required": [
        "filter"
      ],
      "properties": {
        "filter": {
          "oneOf": [
            {
              "type": "object",
              "maxProperties": 0,
              "description": "Empty filter that clears all points in the collection."
            },
            {
              "$ref": "#/$defs/PathSegmentsFilter"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  ],
  "$defs": {
    "PathSegmentsCondition": {
      "type": "object",
      "required": [
        "key",
        "match"
      ],
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^pathSegments\\.\\d+$"
        },
        "match": {
          "type": "object",
          "required": [
            "value"
          ],
          "properties": {
            "value": {
              "type": "string"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "PathSegmentsFilter": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "must"
          ],
          "properties": {
            "must": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/PathSegmentsCondition"
              }
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "should"
          ],
          "properties": {
            "should": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "must"
                ],
                "properties": {
                  "must": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/PathSegmentsCondition"
                    },
                    "minItems": 1
                  }
                },
                "additionalProperties": false
              },
              "minItems": 1
            }
          },
          "additionalProperties": false
        }
      ]
    },
    "PointId": {
      "description": "Point ids accepted by write and lookup requests. Numeric ids are normalized to strings in storage and response objects.",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ]
    }
  }
}