---
title: "Gone: a device no longer writes its intervals; the cloud decides each from its context"
method: PUT
path: "/v1/intervals"
tags: ["entries"]
---

# Gone: a device no longer writes its intervals; the cloud decides each from its context

`PUT /v1/intervals`

## Request

- Base URL: `https://api.sixminute.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sixminute.ai/v1/intervals`
- Auth: HTTP bearer

Answers 410 `gone`: since the generate-reliability plan an interval is decided once, in the cloud, from the context its device uploaded, and no device writes one. Kept so its removal is not an API break; the follow-up removes it.

## Request body

- object
  - `device_id` string, required
  - `intervals` object[], required
    - `t_start` string, date-time, required
    - `t_end` string, date-time, required
    - `evidence` object[], required
      - `t_start` string, date-time, required
      - `t_end` string, date-time, required
      - `app` string, required
      - `bundle` string
      - `title` string, required
      - `host` string, nullable, required
      - `source` 'screen', required
      - `microphone` boolean
      - `camera` boolean
    - `text` string, nullable, required
    - `summary` string, nullable
    - `activity` object, nullable
      - `key` string, required
      - `label` string, nullable, required
    - `stripped` boolean
  - `time_zone` string, nullable

## Response `200`

Never answered since the writer is gone.

- object
  - `stored` integer, required

## Other responses

- `400`: The body, query or path did not validate; `errors` lists the fields.
- `401`: No bearer token, or one that does not verify or has expired.
- `403`: The token verified but may not do this: no organisation, not provisioned, wrong role, or a device problem.
- `410`: The route is gone and changes nothing; the `type` says which.
- `422`: The request is well-formed but cannot be carried out as it stands.

---

[API](https://skmtc.dev/sixminute/apis/sixminute-api.md) - [All operations](https://skmtc.dev/sixminute/apis/sixminute-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sixminute/apis/sixminute-api/revisions/605577eadc10?raw)
