{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blacksky/json-schema/blacksky-patch-geometry-request-schema.json",
  "title": "PatchGeometryRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blacksky-geometries-api-openapi.yml#/components/schemas/PatchGeometryRequest",
  "type": "object",
  "properties": {
    "displayName": {
      "maxLength": 200,
      "minLength": 1,
      "type": "string",
      "description": "The name of the geometry."
    },
    "featureCollection": {
      "$ref": "#/$defs/FeatureCollection"
    }
  },
  "$defs": {
    "CoverageFeature": {
      "required": [
        "geometry",
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of geometry. The only allowed value is `Feature`.\n",
          "enum": [
            "Feature"
          ]
        },
        "geometry": {
          "$ref": "#/$defs/CoverageGeometry"
        },
        "properties": {
          "type": "object",
          "description": "Properties of the geometry.\n"
        }
      },
      "description": "A spatially bounded GeoJSON feature.\n"
    },
    "CoverageGeometry": {
      "required": [
        "coordinates",
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of geometry. Only AOIs are supported.",
          "enum": [
            "Polygon"
          ]
        },
        "coordinates": {
          "type": "array",
          "description": "The coordinates.",
          "items": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          }
        }
      },
      "description": "The geometry in the GeoJSON format.\n"
    },
    "FeatureCollection": {
      "required": [
        "features",
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of geometry. The only allowed value is `FeatureCollection`.\n",
          "enum": [
            "FeatureCollection"
          ]
        },
        "features": {
          "type": "array",
          "description": "GeoJSON features.\n",
          "items": {
            "$ref": "#/$defs/CoverageFeature"
          }
        }
      },
      "description": "A GeoJSON feature collection.\n"
    }
  }
}