---
title: "Log a Data Source execution"
method: POST
path: "/analytics/datasources"
tags: ["Analytics"]
---

# Log a Data Source execution

`POST /analytics/datasources`

Records an execution of a Data Source at the current time for a given dashboard.

## Request body

- DataSourceAnalyticsRecord
  - `date` string, date-time — The date this record was logged.
  - `dashboard` string — The ID of the Dashboard being viewed.
  - `page` string — The current page index (0-indexed).
  - `rev` string — The current revision of the Dashboard.
  - `visitId` string — The current Visit ID: a unique value generated when a Dashboard is opened.
  - `dataSourceName` string — The name of the Data Source that was executed.
  - `dataSourceType` string — The type of Data Source that was executed.
  - `success` boolean — Indicates whether or not the Data Source execution was successful.
  - `duration` integer — The duration of execution, in milliseconds.
  - `browser` object — An object containing Data Source information.

## Response `200`

Record logged.

## Other responses

- `400` — Missing required information.

---

[API](https://skmtc.dev/expediagroup/apis/cyclotron-api.md) · [All operations](https://skmtc.dev/expediagroup/apis/cyclotron-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/expediagroup/cyclotron-api/revisions/18e751e6bc49/schema)
