Documentation menu
styles
POST/styles/{spec}
API key required, sent as Authorization: Bearer snk_… or ?api_key=snk_….
Call it
bash
curl -fsS -X POST "https://api.mapmap.ai/styles/{spec}" \
-H "Authorization: Bearer $MAPMAP_KEY" \
-H "Content-Type: application/json" \
-d @request.jsonParameters
| Name | In | Required | Description |
|---|---|---|---|
| spec | path | yes | Style id |
Request body
application/json · UpdateStyleRequest
| Field | Type | Required | Description |
|---|---|---|---|
| theme | not stated | yes | The full sn-style theme document to publish as the next version. |
Responses
200New version published
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Style id. |
| style_url | string | yes | Immutable URL of the compiled style at this version. |
| version | integer | yes | The newly published, immutable version. |
400Malformed request
404Hosted styles not configured or unknown style
422Theme failed sn-style validation; the body's
problems list names the offending slot or layerError bodies follow the shared problem model documented on API conventions.
Also under styles
Generated from https://api.mapmap.ai/openapi.json on 2026-09-17 · operationId update_style