Skip to main content
POST
/
geospatial
/
featuretypes
/
update
JavaScript SDK
const featureTypesToUpdate = [
 {
   externalId: 'ocean_temperature',
   update: {
       properties: { add: { depth: { type: 'DOUBLE'} }, remove: ['temperature'] },
       searchSpec: { add: { depth_idx: { properties: ['depth'] } } }
   }
 }
];
const updatedFeatureTypes = await client.geospatial.featureType.update(featureTypesToUpdate);
{
  "items": [
    {
      "externalId": "ocean_temperature",
      "dataSetId": 1278028,
      "createdTime": 1629784673505,
      "lastUpdatedTime": 1629784673505,
      "properties": {
        "temperature": {
          "type": "DOUBLE"
        },
        "location": {
          "type": "POINT",
          "srid": 4326
        },
        "createdTime": {
          "type": "LONG"
        },
        "lastUpdatedTime": {
          "type": "LONG"
        },
        "externalId": {
          "type": "STRING",
          "size": 32
        }
      },
      "searchSpec": {
        "location_idx": {
          "properties": [
            "location"
          ]
        },
        "createdTimeIdx": {
          "properties": [
            "createdTime"
          ]
        },
        "lastUpdatedTimeIdx": {
          "properties": [
            "lastUpdatedTime"
          ]
        },
        "externalIdIdx": {
          "properties": [
            "externalId"
          ]
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Body

application/json

List of feature types to be updated. It is possible to add and remove properties and indexes. WARNING: removing properties will result in data loss in corresponding features.

items
object[]
required
Required array length: 1 - 100 elements

Response

Feature type list response.

items
object[]
required
Maximum array length: 100
Last modified on April 23, 2026