เอกสาร MapScale
อ้างอิง APIHealth และ contract
← MapScale API
PATCH/v1/styles/{id}

Update a saved style in place

endpoint ตรวจสถานะและ OpenAPI document แบบ public

ส่ง request นี้ไปยัง API จริงและแสดง response จริง

พารามิเตอร์

Request ที่เทียบเท่า
curl \
  -X PATCH \
  -H "X-MapScale-Key: $MAPSCALE_API_KEY" \
  "https://api.mapscale.io/v1/styles/place_bangkok_123"
Response
Response เริ่มต้น
{
  "status": "200",
  "contentType": "application/json",
  "description": "SavedStyle"
}

Request body

จำเป็น · 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