# radio.4000.track

> A media reference curated into a radio: a URL with a title, a description and #tags.

- Kind: record
- Record key: tid
- Authority: 4000.radio
- Lexicon: 1
- Published by [4000.radio](https://lexicon.garden/identity/did:plc:hd34khf6wifegm23c2u3cv2d), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:hd34khf6wifegm23c2u3cv2d/radio.4000.track)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:hd34khf6wifegm23c2u3cv2d/radio.4000.track/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:hd34khf6wifegm23c2u3cv2d/radio.4000.track/analytics)

## Record (`radio.4000.track`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `description` (string): Free text. #tags and @mentions are parsed from it.
  - Constraints: maxLength: 30000, maxGraphemes: 3000
- `duration` (integer): Media duration in seconds, when known.
  - Constraints: minimum: 0
- `links` (array): Links about the track elsewhere: Discogs, Bandcamp, the artist's site…
  - Constraints: maxLength: 10
  - `items` (ref)
    - Reference: `radio.4000.defs#link`
- `playbackError` (string): Set by the radio's owner when the media could not be played, as provider:code, e.g. youtube:150 for a video that can't be embedded.
  - Constraints: maxLength: 1000
- `title` (string, required)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `updatedAt` (string · datetime)
- `url` (string · uri, required)
  - Constraints: maxLength: 2048

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A media reference curated into a radio: a URL with a title, a description and #tags.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "description": "Free text. #tags and @mentions are parsed from it.",
            "maxGraphemes": 3000,
            "maxLength": 30000,
            "type": "string"
          },
          "duration": {
            "description": "Media duration in seconds, when known.",
            "minimum": 0,
            "type": "integer"
          },
          "links": {
            "description": "Links about the track elsewhere: Discogs, Bandcamp, the artist's site…",
            "items": {
              "ref": "radio.4000.defs#link",
              "type": "ref"
            },
            "maxLength": 10,
            "type": "array"
          },
          "playbackError": {
            "description": "Set by the radio's owner when the media could not be played, as provider:code, e.g. youtube:150 for a video that can't be embedded.",
            "maxLength": 1000,
            "type": "string"
          },
          "title": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "url": {
            "format": "uri",
            "maxLength": 2048,
            "type": "string"
          }
        },
        "required": [
          "url",
          "title",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "radio.4000.track",
  "lexicon": 1
}
```
