---
title: "Set Collection Queryables"
method: POST
path: "/stac/collections/{collectionId}/queryables"
tags: ["SpatioTemporal Asset Catalog (STAC) API"]
---

# Set Collection Queryables

`POST /stac/collections/{collectionId}/queryables`

Set queryables for a collection given a list of queryable definitions

## Path parameters

- `collectionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- StacQueryable[]
  - `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 `201`

The request has succeeded and a new resource has been created as a result.

- StacQueryable[]
  - `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/revisions/42447be18bc5/schema)
