---
title: "/v4 /surveyresources"
method: POST
path: "/surveyresources/{surveyResourceId}/rollups.csv"
tags: ["rollups"]
---

# /v4 /surveyresources

`POST /surveyresources/{surveyResourceId}/rollups.csv`

Returns aggregated (rolled up) values computed from all AI features within the given survey resource and polygon.

## Path parameters

- `surveyResourceId` string, required

## Query parameters

- `polygon` string
- `bulk` boolean
- `packs` string
- `classes` string
- `streetAddress` string
- `city` string
- `state` string
- `zip` string
- `country` 'US' | 'AU'
- `alpha` boolean
- `beta` boolean

## Headers

- `X-Nearmap-Ext-Reference` string

## Request body

- object
  - `aoi` object — A GeoJSON object representing the requested AOI. Must be a GeoJSON polygon with no interior rings. It cannot be used with the `polygon` query parameter.
    - `type` 'Polygon' — GeoJSON geometry type.
    - `coordinates` GeoJSONPolygonRing[] — The collection of rings defining the Polygon.
      - GeoJSONCoordinate[] — A collection of coordinate pairs that define the Polygon ring.
        - number[] — An ordered pair of floating point numbers in the following sequence: longitude, latitude.
  - `classes` string[] — Classes accepts a list of class IDs. Features classes not requested will be filtered out of the response. The full list of available feature classes can be obtained by using the `classes.json` endpoint (Feature class IDs are in the `id` field for classes of type `Feature`). The response will include all feature classes that the user is entitled to if the query or body parameter is not specified. It cannot be used with the `packs` query parameter. This parameter is ignored if used with an empty value. It cannot be used with the `classes` query parameter.

## Response `200`

OK response to the rollups.csv endpoint.

## Other responses

- `400` — Bad Request. There was a problem with the request parameters.
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found. No data is available matching the request criteria.

---

[API](https://skmtc.net/nearmap/apis/tiles.md) · [All operations](https://skmtc.net/nearmap/apis/tiles/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nearmap/tiles/versions/1f55d21ac4b9/schema)
