{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/felt/json-schema/felt-upload-layer-params-schema.json",
  "title": "UploadLayerParams",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/felt-layer-uploads-api-openapi.yml#/components/schemas/UploadLayerParams",
  "properties": {
    "hints": {
      "description": "A list of hints for interpreting the data in the upload.",
      "items": {
        "$ref": "#/$defs/UploadInterpretationHint"
      },
      "type": "array"
    },
    "import_url": {
      "description": "A public URL containing geodata to import, in place of uploading a file.",
      "type": "string"
    },
    "lat": {
      "description": "(Image uploads only) The latitude of the image center.",
      "type": "number"
    },
    "lng": {
      "description": "(Image uploads only) The longitude of the image center.",
      "type": "number"
    },
    "metadata": {
      "$ref": "#/$defs/LayerMetadata"
    },
    "name": {
      "description": "The display name for the new layer.",
      "type": "string"
    },
    "zoom": {
      "description": "(Image uploads only) The zoom level of the image.",
      "type": "number"
    }
  },
  "required": [
    "name"
  ],
  "type": "object",
  "$defs": {
    "LayerMetadata": {
      "additionalProperties": false,
      "properties": {
        "attribution_text": {
          "type": [
            "string",
            "null"
          ]
        },
        "attribution_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "license": {
          "type": [
            "string",
            "null"
          ]
        },
        "source_abbreviation": {
          "type": [
            "string",
            "null"
          ]
        },
        "source_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "source_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "updated_at": {
          "format": "date",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "title": "LayerMetadata",
      "type": "object"
    },
    "UploadInterpretationHint": {
      "oneOf": [
        {
          "description": "A hint that the data contains Latitude and Longitude in two individual attributes.",
          "properties": {
            "attributes": {
              "additionalProperties": false,
              "properties": {
                "lat": {
                  "type": "string"
                },
                "lng": {
                  "type": "string"
                }
              },
              "required": [
                "lat",
                "lng"
              ],
              "type": "object"
            }
          },
          "required": [
            "attributes"
          ],
          "title": "UploadInterpretationHint-AttributeHint-LatitudeAndLongitude",
          "type": "object"
        },
        {
          "description": "A hint that the data contains Latitude and Longitude combined in a single attribute.",
          "properties": {
            "attribute": {
              "additionalProperties": false,
              "properties": {
                "lat_lng": {
                  "type": "string"
                }
              },
              "required": [
                "lat_lng"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-LatitudeAndLongitudeCombined",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a full Address contained in a single attribute.",
          "properties": {
            "attribute": {
              "properties": {
                "full_address": {
                  "type": "string"
                }
              },
              "required": [
                "full_address"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-FullAddress",
          "type": "object"
        },
        {
          "description": "A hint that the data contains an Address spread out over multiple attributes.",
          "properties": {
            "attributes": {
              "additionalProperties": false,
              "properties": {
                "country": {
                  "description": "ex: USA",
                  "type": "string"
                },
                "locality": {
                  "description": "ex: Oakland",
                  "type": "string"
                },
                "postal_code": {
                  "description": "ex: 94612",
                  "type": "string"
                },
                "region": {
                  "description": "ex: California",
                  "type": "string"
                },
                "street_address": {
                  "description": "ex: 1904 Franklin St",
                  "type": "string"
                }
              },
              "required": [
                "street_address"
              ],
              "type": "object"
            }
          },
          "required": [
            "attributes"
          ],
          "title": "UploadInterpretationHint-AttributeHint-PartialAddress",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a Locality spread out over multiple attributes.",
          "properties": {
            "attributes": {
              "additionalProperties": false,
              "properties": {
                "country": {
                  "description": "ex: USA",
                  "type": "string"
                },
                "locality": {
                  "description": "ex: Oakland",
                  "type": "string"
                },
                "region": {
                  "description": "ex: California",
                  "type": "string"
                }
              },
              "required": [
                "locality"
              ],
              "type": "object"
            }
          },
          "required": [
            "attributes"
          ],
          "title": "UploadInterpretationHint-AttributeHint-Locality",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a WKT/WKB Literal attribute",
          "properties": {
            "attribute": {
              "additionalProperties": false,
              "properties": {
                "wkt_wkb_literal": {
                  "type": "string"
                }
              },
              "required": [
                "wkt_wkb_literal"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-WKT_WKB_Literal",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a US Census Tract (Census 2020) attribute. https://www.census.gov/geographies/reference-maps/2020/geo/2020pl-maps/2020-census-tract.html",
          "properties": {
            "attribute": {
              "additionalProperties": false,
              "properties": {
                "us_census_tract_2020": {
                  "type": "string"
                }
              },
              "required": [
                "us_census_tract_2020"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-US_Census_Tract2020",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a US Core-based statistical area (Census 2020) attribute: https://www.census.gov/geographies/reference-maps/2020/geo/cbsa.html",
          "properties": {
            "attribute": {
              "additionalProperties": false,
              "properties": {
                "us_cbsa_2020": {
                  "type": "string"
                }
              },
              "required": [
                "us_cbsa_2020"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-US_CBSA_2020",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a US State (Census 2020) attribute.",
          "properties": {
            "attribute": {
              "properties": {
                "us_state_2020": {
                  "type": "string"
                }
              },
              "required": [
                "us_state_2020"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-US_State_2020",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a US County (Census 2020) attribute.",
          "properties": {
            "attribute": {
              "properties": {
                "us_county_2020": {
                  "type": "string"
                }
              },
              "required": [
                "us_county_2020"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-US_County_2020",
          "type": "object"
        },
        {
          "description": "A hint that the data contains US Zip Code (2022) attribute.",
          "properties": {
            "attribute": {
              "properties": {
                "us_zip_code_2022": {
                  "type": "string"
                }
              },
              "required": [
                "us_zip_code_2022"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-US_Zip_Code_2022",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a Eurostat LAU (2021) attribute. https://ec.europa.eu/eurostat/web/nuts/local-administrative-units",
          "properties": {
            "attribute": {
              "properties": {
                "eu_lau_2021": {
                  "type": "string"
                }
              },
              "required": [
                "eu_lau_2021"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-EuropeanUnion_LAU_2021",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a Eurostat NUTS Level 1 (2021) attribute. https://ec.europa.eu/eurostat/web/gisco/geodata/statistical-units/territorial-units-statistics",
          "properties": {
            "attribute": {
              "properties": {
                "eu_nuts_1_2021": {
                  "type": "string"
                }
              },
              "required": [
                "eu_nuts_1_2021"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-European_Union_NUTS_1_2021",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a Eurostat NUTS 2 (2021) attribute. https://ec.europa.eu/eurostat/web/gisco/geodata/statistical-units/territorial-units-statistics",
          "properties": {
            "attribute": {
              "properties": {
                "eu_nuts_2_2021": {
                  "type": "string"
                }
              },
              "required": [
                "eu_nuts_2_2021"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-European_Union_NUTS_2_2021",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a Eurostat NUTS 3 (2021) attribute. https://ec.europa.eu/eurostat/web/gisco/geodata/statistical-units/territorial-units-statistics",
          "properties": {
            "attribute": {
              "properties": {
                "eu_nuts_3_2021": {
                  "type": "string"
                }
              },
              "required": [
                "eu_nuts_3_2021"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-European_Union_NUTS_3_2021",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a Australian ABS postal area (2021) attribute. https://www.abs.gov.au/statistics/standards/australian-statistical-geography-standard-asgs-edition-3/jul2021-jun2026/non-abs-structures/postal-areas",
          "properties": {
            "attribute": {
              "properties": {
                "aus_postal_area_2021": {
                  "type": "string"
                }
              },
              "required": [
                "aus_postal_area_2021"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-Australian_ABS_Postal_Area_2021",
          "type": "object"
        },
        {
          "description": "A hint that the data contains an Administrative Level 0 (Country) attribute. https://en.wikipedia.org/wiki/List_of_administrative_divisions_by_country",
          "properties": {
            "attribute": {
              "properties": {
                "admin_0": {
                  "type": "string"
                }
              },
              "required": [
                "admin_0"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-Admin0",
          "type": "object"
        },
        {
          "description": "A hint that the data contains an Administrative Level 1 (Region) attribute. https://en.wikipedia.org/wiki/List_of_administrative_divisions_by_country",
          "properties": {
            "attribute": {
              "properties": {
                "admin_1": {
                  "type": "string"
                }
              },
              "required": [
                "admin_1"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-Admin1",
          "type": "object"
        },
        {
          "description": "A hint that the data contains a Timezone attribute.",
          "properties": {
            "attribute": {
              "properties": {
                "timezone": {
                  "type": "string"
                }
              },
              "required": [
                "timezone"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-Timezone",
          "type": "object"
        },
        {
          "description": "A hint that the data contains H3 attribute.",
          "properties": {
            "attribute": {
              "properties": {
                "h3": {
                  "type": "string"
                }
              },
              "required": [
                "h3"
              ],
              "type": "object"
            }
          },
          "required": [
            "attribute"
          ],
          "title": "UploadInterpretationHint-AttributeHint-H3",
          "type": "object"
        }
      ],
      "title": "UploadInterpretationHint"
    }
  }
}