---
title: "Daylight Exposure"
method: POST
path: "daily.data.daylight_exposure.*"
tags: ["timeseries"]
---

# Daylight Exposure

`POST daily.data.daylight_exposure.*` (webhook)

## Payload

- ClientFacingDaylightExposureChanged
  - `event_type` 'daily.data.daylight_exposure.created' | 'daily.data.daylight_exposure.updated', required
  - `user_id` string, uuid, required
  - `client_user_id` string, uuid, required
  - `team_id` string, uuid, required
  - `data` GroupedDaylightExposure, required
    - `source` ClientFacingSource, required — Source summarizes where a sample or a summary is sourced from. At minimum, the source provider is always included.
      - `provider` string, required — Provider slug. e.g., `oura`, `fitbit`, `garmin`.
      - `type` string — The type of the data source (app or device) by which the summary or the timeseries data were recorded. This defaults to `unknown` when Vital cannot extract or infer that information
      - `app_id` string, nullable — The identifier of the app which recorded this summary. This is only applicable to multi-source providers like Apple Health and Android Health Connect.
      - `device_id` string, uuid, nullable — The identifier of the device which recorded this summary.
      - `sport` string, nullable — For workout stream timeseries, this is the standard sport slug of the workout with which the timeseries data are associated. For the `distance` timeseries, this is `wheelchair_pushing` if the user is a wheelchair user, or `null` otherwise. For all summary types and non-workout timeseries, this is always `null`.
      - `workout_id` string, uuid, nullable — For workout stream timeseries, this is the workout ID with which the timeseries data are associated. For all other types, this is always `null`.
      - `name` string — Deprecated. Subject to removal after 1 Jan 2024.
      - `slug` string — Deprecated. Use `provider` instead. Subject to removal after 1 Jan 2024.
      - `logo` string — Deprecated. Subject to removal after 1 Jan 2024.
    - `data` ClientFacingDaylightExposureSample[], required
      - `id` integer, nullable — Deprecated
      - `timezone_offset` integer, nullable — Time zone UTC offset in seconds. Positive offset indicates east of UTC; negative offset indicates west of UTC; and null indicates the time zone information is unavailable at source.
      - `type` string, nullable — Type is always null for this resource.
      - `unit` 'min', required
      - `timestamp` string, date-time, required — Depracated. The start time (inclusive) of the interval.
      - `start` string, date-time, required — The start time (inclusive) of the interval.
      - `end` string, date-time, required — The end time (exclusive) of the interval.
      - `value` number, required — The recorded value for the interval.

## Acknowledgement `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/tryvital/apis/junction-api.md) · [All operations](https://skmtc.net/tryvital/apis/junction-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryvital/junction-api/versions/d28f5cec7d79/schema)
