---
title: "Submit aggregated data"
method: POST
path: "/aggregatedData/submit"
tags: ["Aggregated Data"]
---

# Submit aggregated data

`POST /aggregatedData/submit`

Uploads aggregated data required to calculate Popularity Score for assets. 

There are 2 different ways to provide keys and type (see examples).

## Request body

- AggregatedData[]
  - `assetLocator` AssetLocator — Describes where to search for a specific Catalog asset. It might match more than one result. It also specifies the type of the datastore of origin and its commercial name
    - `type` string, required — Identifier for the datastore type of origin.
    - `product` string — Commercial name of the datastore of origin.
    - `keys` string[], required — Ordered list of names for each member of the hierarchy of an item.
  - `toDate` string, date-time — End date of the 30-day window used for popularity calculation
  - `timePeriod` string
  - `queryCount` integer
  - `distinctUsers` integer — Number of distinct users that have queried the asset

## Response `202`

Submits a batch of data to be written (asynchronous endpoint).

- Job
  - `id` string, uuid, required
  - `createdBy` string, uuid, required
  - `createdOn` string, date-time, required
  - `startDate` string, date-time, required
  - `endDate` string, date-time
  - `status` 'Waiting' | 'Running' | 'Completed' | 'Failed', required
  - `report` object

## Other responses

- `400` — The request is not valid.
- `401` — The client is not authenticated.
- `403` — The user lacks permissions.
- `404` — Resource not found.

---

[API](https://skmtc.net/collibra/apis/collibra-data-governance-center-core-api.md) · [All operations](https://skmtc.net/collibra/apis/collibra-data-governance-center-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/collibra/collibra-data-governance-center-core-api/revisions/6d091bc86a33/schema)
