# app.studynext.task

> A single day's study task, generated from a plan or created free-standing. rkey is a sanitized form of the client's task id (non [A-Za-z0-9._:~-] characters replaced with '_'), written via putRecord — this makes a retried push idempotent (a network-timeout retry overwrites the same rkey instead of creating a duplicate) rather than requiring the client to track which pushes already succeeded.

- Kind: record
- Record key: any
- Authority: studynext.app
- Lexicon: 1
- Published by [studynext.app](https://lexicon.garden/identity/did:plc:nstib2qjcu3tyun7cxz4dxcm), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.task)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.task/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.task/analytics)

## Record (`app.studynext.task`)

Type: record · key any

### Properties

- `accent` (string, required): Accent color (hex code).
  - Constraints: maxLength: 7
- `amount` (integer, required): Amount of units this task covers.
- `deadline` (string): Calendar date in YYYY-MM-DD format; not a timestamp.
- `deckId` (string): Associated flashcard deck id, for review tasks.
  - Constraints: maxLength: 100
- `estMin` (integer, required): Estimated minutes to complete.
- `fromUnit` (integer)
- `isReview` (boolean)
- `localId` (string, required): Matches local Task.id. The record's rkey is a sanitized form of this value (see the record-level description above), not this value verbatim.
  - Constraints: maxLength: 100
- `material` (string, required): Material title snapshot.
  - Constraints: maxLength: 600
- `pdsRkey` (string · tid): Canonical migrated TID rkey. It points to a create-only copy while the legacy source record remains readable.
- `planId` (string): Source StudyPlan id, if this task was generated from a plan.
  - Constraints: maxLength: 100
- `repeatDays` (array): Days of week this task repeats on (0=Sunday, 6=Saturday).
  - Constraints: maxLength: 7
  - `items` (integer)
    - Constraints: minimum: 0, maximum: 6
- `repeatIntervalDays` (integer)
  - Constraints: minimum: 1
- `round` (integer)
  - Constraints: minimum: 1
- `startDate` (string): Calendar date in YYYY-MM-DD format; not a timestamp.
- `status` (string, required)
  - Constraints: knownValues: pending | next | done | skipped
- `subjectId` (string)
  - Constraints: maxLength: 100
- `subjectName` (string)
  - Constraints: maxLength: 300
- `title` (string, required)
  - Constraints: maxLength: 600
- `toUnit` (integer)
- `unit` (string, required)
  - Constraints: maxLength: 60
- `updatedAt` (string · datetime, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A single day's study task, generated from a plan or created free-standing. rkey is a sanitized form of the client's task id (non [A-Za-z0-9._:~-] characters replaced with '_'), written via putRecord — this makes a retried push idempotent (a network-timeout retry overwrites the same rkey instead of creating a duplicate) rather than requiring the client to track which pushes already succeeded.",
      "key": "any",
      "record": {
        "properties": {
          "accent": {
            "description": "Accent color (hex code).",
            "maxLength": 7,
            "type": "string"
          },
          "amount": {
            "description": "Amount of units this task covers.",
            "type": "integer"
          },
          "deadline": {
            "description": "Calendar date in YYYY-MM-DD format; not a timestamp.",
            "type": "string"
          },
          "deckId": {
            "description": "Associated flashcard deck id, for review tasks.",
            "maxLength": 100,
            "type": "string"
          },
          "estMin": {
            "description": "Estimated minutes to complete.",
            "type": "integer"
          },
          "fromUnit": {
            "type": "integer"
          },
          "isReview": {
            "type": "boolean"
          },
          "localId": {
            "description": "Matches local Task.id. The record's rkey is a sanitized form of this value (see the record-level description above), not this value verbatim.",
            "maxLength": 100,
            "type": "string"
          },
          "material": {
            "description": "Material title snapshot.",
            "maxLength": 600,
            "type": "string"
          },
          "pdsRkey": {
            "description": "Canonical migrated TID rkey. It points to a create-only copy while the legacy source record remains readable.",
            "format": "tid",
            "type": "string"
          },
          "planId": {
            "description": "Source StudyPlan id, if this task was generated from a plan.",
            "maxLength": 100,
            "type": "string"
          },
          "repeatDays": {
            "description": "Days of week this task repeats on (0=Sunday, 6=Saturday).",
            "items": {
              "maximum": 6,
              "minimum": 0,
              "type": "integer"
            },
            "maxLength": 7,
            "type": "array"
          },
          "repeatIntervalDays": {
            "minimum": 1,
            "type": "integer"
          },
          "round": {
            "minimum": 1,
            "type": "integer"
          },
          "startDate": {
            "description": "Calendar date in YYYY-MM-DD format; not a timestamp.",
            "type": "string"
          },
          "status": {
            "knownValues": [
              "pending",
              "next",
              "done",
              "skipped"
            ],
            "type": "string"
          },
          "subjectId": {
            "maxLength": 100,
            "type": "string"
          },
          "subjectName": {
            "maxLength": 300,
            "type": "string"
          },
          "title": {
            "maxLength": 600,
            "type": "string"
          },
          "toUnit": {
            "type": "integer"
          },
          "unit": {
            "maxLength": 60,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "localId",
          "material",
          "title",
          "amount",
          "unit",
          "estMin",
          "status",
          "accent",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.task",
  "lexicon": 1
}
```
