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
Response
Successful Response
Changes
Changed in 3 of the 9 revisions of this API.111
- ●
deleted the
queryrequest parameterrequestrequest-parameter-removed
- ●
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲