MapScale Docs
API ReferenceHealth and contract
← MapScale API
PATCH/v1/styles/{id}

Update a saved style in place

Public operational checks and the OpenAPI document.

Sends this request to the live API and shows the real response.

Parameters

Equivalent request
curl \
  -X PATCH \
  -H "X-MapScale-Key: $MAPSCALE_API_KEY" \
  "https://api.mapscale.io/v1/styles/place_bangkok_123"
Response
Default response
{
  "status": "200",
  "contentType": "application/json",
  "description": "SavedStyle"
}

Request body

Required · application/json

Responses

200SavedStyleapplication/json
400Malformed body, or none of `name`, `overlay`, `datasetIds`, `public` given.application/json
401mapscale/effect-api/UnauthorizedFailureapplication/json
403Publishable keys cannot manage styles. | mapscale/effect-api/ForbiddenFailureapplication/json
404No such style in this account.application/json
422Blank name, invalid overlay, unknown dataset, or overlay too large.application/json
429mapscale/effect-api/RateLimitedFailureapplication/json
500The style could not be updated. | mapscale/effect-api/MiddlewareInternalFailureapplication/json
503mapscale/effect-api/UpstreamUnavailableFailureapplication/json

On this page

Analytics settings