Skip to content

50,000 free calls a month, card-free. Get an API key →

Documentation menu
docs / api / post-styles-spec
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.json

Parameters

NameInRequiredDescription
specpathyesStyle id

Request body

application/json · UpdateStyleRequest

FieldTypeRequiredDescription
themenot statedyesThe full sn-style theme document to publish as the next version.

Responses

200New version published
FieldTypeRequiredDescription
idstringyesStyle id.
style_urlstringyesImmutable URL of the compiled style at this version.
versionintegeryesThe 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 layer

Error 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