v1

latestOpenAPI 3.1.02026-07-1771114.6 KB
Layers

Set layer style

Sets a layer's active style in the map to a MapLibre JSON layer list.

This operation will fail if the style is invalid according to the style spec and the source definition.

Returns the created style_id and confirmation that it has been applied.

post/api/layers/{layer_id}/style

Path parameters

layer_idstring required

Request body

map_idstring required

Map ID where this new style will be applied

Response

Successful Response

style_idstring required

ID of the created style

layer_idstring required

ID of the layer the style was applied to