Skip to main content
PUT
Update a layer style

Authorizations

Authorization
string
header
required

Personal API key (mkx_...) created from the MapX account.

Path Parameters

id
string
required

Project UUID.

layerId
string
required

Layer UUID.

Body

application/json

Style object to merge. Only include the fields to change.

Style to merge into the layer's persisted style (partial update): omitted top-level keys are preserved; a same-type renderer deep-merges paint; label/legend are merged; _meta is preserved.

renderer
object

Renderer configuration. Partial updates are supported: omitted fields (and a missing renderer.type) inherit from the existing style; a same-type renderer deep-merges paint.

label
object

Text annotation configuration. Partial updates are supported.

legend
object

Legend overlay configuration.

Response

Style updated.

ok
boolean
required