---
title: "Validate Feature"
method: POST
path: "/collections/validate"
tags: ["Validate"]
---

# Validate Feature

`POST /collections/validate`

## Request

- Base URL: `https://api.planet.com/features/v1/ogc/my`
- URL: `https://api.planet.com/features/v1/ogc/my/collections/validate`
- Auth: one of:
  - HTTP bearer
  - HTTP basic
- TypeScript: <https://skmtc.dev/planet/apis/planet-features-api/docs/collections/validate/post.ts> (a function with typed inputs; its response is checked against the schema)

Validate a feature or feature collection against this dataset's lint rules.

## Request body

- union
  - FeatureGeoJSON
    - `type` 'Feature', required
    - `geometry` union, required
      - PointGeoJSON
        - `type` 'Point', required
        - `coordinates` number[], required
      - MultipointGeoJSON
        - `type` 'MultiPoint', required
        - `coordinates` array[], required
          - number[]
      - LinestringGeoJSON
        - `type` 'LineString', required
        - `coordinates` array[], required
          - number[]
      - MultilinestringGeoJSON
        - `type` 'MultiLineString', required
        - `coordinates` array[], required
          - array[]
            - number[]
      - PolygonGeoJSON
        - `type` 'Polygon', required
        - `coordinates` array[], required
          - array[]
            - number[]
      - MultipolygonGeoJSON
        - `type` 'MultiPolygon', required
        - `coordinates` array[], required
          - array[]
            - array[]
              - …
      - GeometrycollectionGeoJSON
        - `type` 'GeometryCollection', required
        - `geometries` GeometryGeoJSON[], required
    - `properties` object, nullable, required
    - `id` union
      - string
      - integer
    - `links` Link[]
      - `href` string, required
      - `rel` string
      - `type` string
      - `hreflang` string
      - `title` string
      - `length` integer
  - FeatureCollectionGeoJSON
    - `type` 'FeatureCollection', required
    - `features` FeatureGeoJSON[], required
      - `type` 'Feature', required
      - `geometry` union, required
        - PointGeoJSON
          - `type` 'Point', required
          - `coordinates` number[], required
        - MultipointGeoJSON
          - `type` 'MultiPoint', required
          - `coordinates` array[], required
            - number[]
        - LinestringGeoJSON
          - `type` 'LineString', required
          - `coordinates` array[], required
            - number[]
        - MultilinestringGeoJSON
          - `type` 'MultiLineString', required
          - `coordinates` array[], required
            - array[]
              - …
        - PolygonGeoJSON
          - `type` 'Polygon', required
          - `coordinates` array[], required
            - array[]
              - …
        - MultipolygonGeoJSON
          - `type` 'MultiPolygon', required
          - `coordinates` array[], required
            - array[]
              - …
        - GeometrycollectionGeoJSON
          - `type` 'GeometryCollection', required
          - `geometries` GeometryGeoJSON[], required
      - `properties` object, nullable, required
      - `id` union
        - string
        - integer
      - `links` Link[]
        - `href` string, required
        - `rel` string
        - `type` string
        - `hreflang` string
        - `title` string
        - `length` integer
    - `links` Link[]
      - `href` string, required
      - `rel` string
      - `type` string
      - `hreflang` string
      - `title` string
      - `length` integer
    - `timeStamp` string, date-time: This property indicates the time and date when the response was generated.
    - `numberMatched` integer: The number of features of the feature type that match the selection parameters like `bbox`.
    - `numberReturned` integer: The number of features in the feature collection. A server may omit this information in a response, if the information about the number of features is not known or difficult to compute. If the value is provided, the value shall be identical to the number of items in the "features" array.

## Response `200`

The feature is valid

## Other responses

- `400`: Feature geometry does not pass lint rules

---

[API](https://skmtc.dev/planet/apis/planet-features-api.md) - [All operations](https://skmtc.dev/planet/apis/planet-features-api/llms.txt) - [OpenAPI document](https://skmtc.dev/planet/apis/planet-features-api/revisions/5a7c6f310684?raw)
