Get changesets by version

Each successful write transaction to the an interactive map layer is stored as a single changeset, which can contain modifications applied to one or more features.

The following request retrieves one changeset from a layer by version. Each successful write transaction to the layer is stored as a single changeset, which can contain modifications applied to one or more features.

The response payload may be split into multiple pages, with the next page written in the property 'nextPageToken', which can be retrieved using the 'pageToken' parameter.

GET /<Base path for the interactive API from the API Lookup Service>/layers/{layerId}/changesets/{versionNumber}
Host: <Hostname for the interactive API from the API Lookup Service>
Authorization: Bearer <Authorization Token>
Cache-Control: no-cache

Which returns the following sample response:

{
  "type": "Changeset",
  "version": "{versionNumber}",
  "author": "VCHQGjitkpbAXBbmSWP2",
  "createdAt": 1680007463079,
  "inserted": {
    "type": "FeatureCollection",
    "features": [
      {
        "type": "Feature",
        "id": "Q1369587",
        "geometry": {
          "type": "Point",
          "coordinates": [
            -62.696667,
            8.3125
          ]
        },
        "properties": {
          "name": "Polideportivo Cachamay",
          "sport": "association football",
          "capacity": 41600
        }
      }
    ]
  },
  "updated": {
    "type": "FeatureCollection",
    "features": [
      {
        "type": "Feature",
        "id": "Q947065",
        "geometry": {
          "type": "Point",
          "coordinates": [
            -110.948889,
            32.228889
          ]
        },
        "properties": {
          "name": "Arizona Stadium",
          "sport": "American football",
          "capacity": 56037
        }
      }
    ]
  },
  "deleted": {
    "type": "FeatureCollection",
    "features": [
      {
        "type": "Feature",
        "id": "Q1369587",
        "geometry": {
          "type": "Point",
          "coordinates": [
            -62.696667,
            8.3125
          ]
        },
        "properties": {
          "name": "Murrayfield Stadium",
          "sport": "rugby union",
          "capacity": 67144
        }
      }
    ]
  }
}

Note

You can alternatively use an API Key instead of an OAuth bearer token in an authorization header.

results matching ""

    No results matching ""