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

Rename a dataset or change its visibility

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/datasets/place_bangkok_123"
Response
Default response
{
  "status": "200",
  "contentType": "application/json",
  "description": "Dataset"
}

Request body

Required · 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 settings