MapScale Docs
API ReferenceHealth and contract
← MapScale API
POST/v1/analysis/aggregate

Aggregate a dataset by area or hexagon

Public operational checks and the OpenAPI document.

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

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

Request body

Required · application/json

Responses

200AnalysisAggregateResponseapplication/json
400Invalid body.application/json
401mapscale/effect-api/UnauthorizedFailureapplication/json
403Publishable keys cannot run analysis. | mapscale/effect-api/ForbiddenFailureapplication/json
404The dataset does not exist or is not visible to this account.application/json
422The analysis exceeded its 10 s budget; use a smaller dataset or larger cells.application/json
429mapscale/effect-api/RateLimitedFailureapplication/json
500The analysis could not be run. | mapscale/effect-api/MiddlewareInternalFailureapplication/json
503mapscale/effect-api/UpstreamUnavailableFailureapplication/json

On this page

Analytics settings