v1

latestOpenAPI 3.0.3Apache License 2.02026-07-17166173.5 KB
Transaction

Update an existing feature by Id with a complete item definition

Use this method to update an existing feature. Requires the entire GeoJSON description be submitted.

put/collections/{collectionId}/items/{featureId}

Headers

If-Matchstring required

Only take the action if the ETag of the item still matches

Request body

stac_versionstring required
idstring required

Provider identifier, a unique ID.

bboxnumber[] required

Only features that have a geometry that intersects the bounding box are selected. The bounding box is provided as four or six numbers, depending on whether the coordinate reference system includes a vertical axis (elevation or depth):

  • Lower left corner, coordinate axis 1
  • Lower left corner, coordinate axis 2
  • Lower left corner, coordinate axis 3 (optional)
  • Upper right corner, coordinate axis 1
  • Upper right corner, coordinate axis 2
  • Upper right corner, coordinate axis 3 (optional)

The coordinate reference system of the values is WGS84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84).

For WGS84 longitude/latitude the values are in most cases the sequence of minimum longitude, minimum latitude, maximum longitude and maximum latitude. However, in cases where the box spans the antimeridian the first value (west-most box edge) is larger than the third value (east-most box edge).

If a feature has multiple spatial geometry properties, it is the decision of the server whether only a single spatial geometry property is used to determine the extent or all relevant geometries.

Example: The bounding box of the New Zealand Exclusive Economic Zone in WGS 84 (from 160.6°E to 170°W and from 55.95°S to 25.89°S) would be represented in JSON as [160.6, -55.95, -170, -25.89] and in a query as bbox=160.6,-55.95,-170,-25.89.

type'Feature' required

The GeoJSON type

assetsAssets required

Example request

{
  "stac_version": "1.1.0",
  "stac_extensions": [
    "https://stac-extensions.github.io/eo/v1.0.0/schema.json",
    "https://stac-extensions.github.io/view/v1.0.0/schema.json",
    "https://example.com/cs-extension/1.0/schema.json"
  ],
  "type": "Feature",
  "id": "CS3-20160503_132131_05",
  "bbox": [
    -122.59750209,
    37.48803556,
    -122.2880486,
    37.613537207
  ],
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          -122.308150179,
          37.488035566
        ],
        [
          -122.597502109,
          37.538869539
        ],
        [
          -122.576687533,
          37.613537207
        ],
        [
          -122.2880486,
          37.562818007
        ],
        [
          -122.308150179,
          37.488035566
        ]
      ]
    ]
  },
  "properties": {
    "datetime": "2016-05-03T13:22:30.040Z",
    "title": "A CS3 item",
    "license": "PDDL-1.0",
    "providers": [
      {
        "name": "CoolSat",
        "roles": [
          "producer",
          "licensor"
        ],
        "url": "https://cool-sat.com/"
      }
    ],
    "view:sun_azimuth": 168.7,
    "eo:cloud_cover": 0.12,
    "view:off_nadir": 1.4,
    "platform": "coolsat2",
    "instruments": [
      "cool_sensor_v1"
    ],
    "eo:bands": [],
    "view:sun_elevation": 33.4,
    "eo:gsd": 0.512
  },
  "collection": "CS3",
  "links": [
    {
      "rel": "self",
      "href": "http://cool-sat.com/collections/CS3/items/20160503_132130_04"
    },
    {
      "rel": "root",
      "href": "http://cool-sat.com/collections"
    },
    {
      "rel": "parent",
      "href": "http://cool-sat.com/collections/CS3"
    },
    {
      "rel": "collection",
      "href": "http://cool-sat.com/collections/CS3"
    }
  ],
  "assets": {
    "analytic": {
      "href": "http://cool-sat.com/static-catalog/CS3/20160503_132130_04/analytic.tif",
      "title": "4-Band Analytic"
    },
    "thumbnail": {
      "href": "http://cool-sat.com/static-catalog/CS3/20160503_132130_04/thumbnail.png",
      "title": "Thumbnail"
    }
  }
}

Response

The item was replaced