---
title: "Update Collection Queryables"
method: PUT
path: "/stac/collections/{collectionId}/queryables/{queryableName}"
tags: ["STAC Collection Configuration"]
---

# Update Collection Queryables

`PUT /stac/collections/{collectionId}/queryables/{queryableName}`

Updates a queryable given a queryable definition and
corresponding collection id.

## Path parameters

- `collectionId` string, required
- `queryableName` string, required

## Query parameters

- `api-version` string, required

## Request body

- StacQueryable — Definition of a queryable field for STAC API filtering.
  - `name` string, required — Name of the queryable field.
  - `definition` object, required — Metadata for the queryable field.
  - `create_index` boolean — Whether to create a database index for this field.
  - `data_type` 'string' | 'number' | 'boolean' | 'timestamp' | 'date' — Data type of the queryable field.

## Response `200`

The request has succeeded.

- StacQueryable — Definition of a queryable field for STAC API filtering.
  - `name` string, required — Name of the queryable field.
  - `definition` object, required — Metadata for the queryable field.
  - `create_index` boolean — Whether to create a database index for this field.
  - `data_type` 'string' | 'number' | 'boolean' | 'timestamp' | 'date' — Data type of the queryable field.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/orbital-microsoft-planetarycomputer.md) · [All operations](https://skmtc.net/azure/apis/orbital-microsoft-planetarycomputer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/orbital-microsoft-planetarycomputer/versions/42447be18bc5/schema)
