---
title: "Get ClassMap Legend"
method: GET
path: "/data/legend/classmap/{classmapName}"
tags: ["Map Legends"]
---

# Get ClassMap Legend

`GET /data/legend/classmap/{classmapName}`

Generate values and color swatches mapping for a given classmap.

## Path parameters

- `classmapName` string, required

## Query parameters

- `api-version` string, required
- `trim_start` integer
- `trim_end` integer

## Response `200`

The request has succeeded.

- ClassMapLegendResponse — ClassMap legend response model.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2026-02-19** (2025-04-30-preview) `28e8cb365289` — 1 breaking, 1 info
  - removed the success response with the status `204`
  - api operation id `MapsClassmapLegends_Get` removed and replaced with `MapsClassMapLegends_Get`
- **2025-05-15** (2025-04-30-preview) `00cbc3d6d8e0` — 2 info
  - api operation id `MapsClassMapLegends_Get` removed and replaced with `MapsClassmapLegends_Get`
  - added the success response with the status `204`

[Change history](https://skmtc.dev/azure/apis/orbital-microsoft-planetarycomputer/changes/data/legend/classmap/:classmapName/get.md)

---

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