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

Rename a dataset or change its visibility

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

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

พารามิเตอร์

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

Request body

จำเป็น · application/json

Responses

200Datasetapplication/json
400Malformed body, or neither `name` nor `public` given.application/json
401mapscale/effect-api/UnauthorizedFailureapplication/json
403Publishable keys cannot manage datasets. | mapscale/effect-api/ForbiddenFailureapplication/json
404No such dataset in this account.application/json
422The name is blank.application/json
429mapscale/effect-api/RateLimitedFailureapplication/json
500The dataset could not be updated. | mapscale/effect-api/MiddlewareInternalFailureapplication/json
503mapscale/effect-api/UpstreamUnavailableFailureapplication/json

On this page

ตั้งค่า Analytics