---
title: "Apply Dynamic Styling To Map"
method: POST
path: "/v1/spatial/wms"
tags: ["Spatial Maps API"]
---

# Apply Dynamic Styling To Map

`POST /v1/spatial/wms`

## Request

- Base URL: `https://api.cloud.precisely.com`
- URL: `https://api.cloud.precisely.com/v1/spatial/wms`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

POST version of WMS GetMap that accepts the **SLD_BODY** as an `application/x-www-form-urlencoded` form field in the request body.
All standard WMS parameters (REQUEST, SERVICE, VERSION, LAYERS, STYLES, CRS, BBOX, WIDTH, HEIGHT, FORMAT, etc.) are provided as **query parameters**.

**Example:**
- REQUEST=GetMap
- SERVICE=WMS
- VERSION=1.3.0
- LAYERS=World
- CRS=EPSG:4326
- BBOX=37.786,-122.274,37.814,-122.240
- WIDTH=1062
- HEIGHT=853
- FORMAT=image/png
- TRANSPARENT=TRUE
- SLD_BODY _(in request body as form field)_

**Authorization:** Requires a valid Bearer JWT or API key (see security schemes below). As with the GET WMS entrypoint, no per-layer EXECUTE-permission check is performed.

## Query parameters

- `REQUEST` string, required
- `SERVICE` string, required
- `VERSION` string
- `LAYERS` string, required
- `STYLES` string
- `CRS` string
- `SRS` string
- `BBOX` string, required
- `WIDTH` integer, required
- `HEIGHT` integer, required
- `FORMAT` string, required
- `TRANSPARENT` string
- `BGCOLOR` string
- `EXCEPTIONS` string

## Headers

- `X-Request-Id` string

## Response `200`

Map image returned successfully

## Other responses

- `400`: Invalid request parameters

---

[API](https://skmtc.dev/precisely/apis/mapping-api.md) · [All operations](https://skmtc.dev/precisely/apis/mapping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/precisely/apis/mapping-api/revisions/cea0ad9440c5?raw)
