---
deprecated: true
search:
  tags:
    - events
    - POST
seo:
  description: >-
    Deprecated. This HTTPS ingest endpoint stays available… Reference for the
    POST /events/de.ard.eventhub.v1.radio.track.next endpoint in the ARD
    Eventhub API.
sidebar:
  label: Distribute a next track
  badge: POST
title: Distribute a next track
type: openapi-operation
---
Deprecated. This HTTPS ingest endpoint stays available until publishers finish moving to Eventhub Connect (MQTT), then it is removed.

`POST /events/de.ard.eventhub.v1.radio.track.next`

**Deprecated.**

**Request body** (`application/json`, required)

New event to be distributed to subscribers. The Eventhub format validation expects only a subset of these variables as minimum set. All other fields are technically optional, but \*\*highly encouraged\*\* to be included, so a best-possible metadata exchange is possible. The subset is defined in the list of required fields of Schemas \`eventV1PostBody\`, resulting in this body: \`\`\`json { "type": "music", "start": "2020-01-19T06:00:00+01:00", "title": "Song name", "services": \[ { ... } \], "playlistItemId": "swr3-5678" } \`\`\` Required fields not specified in the Schema, will cause your request to fail. The \`id\` is inserted by Eventhub as string-formatted number, but might be a true string in the future, do not expect this string to remain numbers only!

- `event` (string) — If set, it needs to match the URL event parameter
- `type` (string, required) — The type of the element that triggered this event. See additional file in docs for details.
- `start` (string, required) — ISO8601 compliant timestamp
- `length` (number, required) — Estimated length of the element in seconds. Must be set to a positive number (not 0 or null). The end of the current element is defined by the start of the next element.
- `title` (string, required) — Representative title for external use
- `artist` (string | null) — Pre-formatted artist information
- `contributors` (contributor[] | null) — Full details about involved artists if available
- `services` (services[], required) — The playing stations unique Service-IDs. Do not include the Service-Type suffix.
- `references` (reference[] | null) — related external entities
- `playlistItemId` (string, required) — Unique identifier (within a publisher) to connect next and playing items if needed
- `hfdbIds` (string[] | null) — Can reference all available tracks in ARD HFDB instances. Should ideally at least include the common ZSK instance.
- `externalId` (string | null) — Can reference the original ID in the publisher's system
- `isrc` (string | null) — Appropriate ISRC code if track is a music element
- `upc` (string | null) — Corresponding reference to an album where such ISRC was published
- `mpn` (string | null) — If available the reference to the original delivery from MPN
- `media` (mediaItem[] | null) — Can contain an array of media files like cover, artist, etc.
- `plugins` (eventPlugin[] | null) — Highly optional field for future third-party metadata distribution or other connected services
- `id` (string) — ID gets inserted by Eventhub as string-formatted number, but might be a true string in the future, do not expect this string to remain numbers only!

Request body example:

```json
{
  "event": "de.ard.eventhub.v1.radio.track.playing",
  "type": "music",
  "start": "2020-01-19T06:00:00+01:00",
  "length": 240,
  "title": "Song name",
  "artist": "Sam Feldt feat. Someone Else",
  "contributors": [
    {
      "name": "Sam Feldt",
      "role": "artist",
      "normDb": {
        "type": "Person",
        "id": "1641010"
      },
      "isni": "string",
      "url": "string"
    }
  ],
  "services": [
    {
      "id": "urn:ard:permanent-livestream:49267f7d67be180d",
      "publisherId": "248000",
      "institutionId": "urn:ard:institution:a3004ff924ece1a2",
      "type": "PermanentLivestream",
      "externalId": "crid://swr.de/123450"
    }
  ],
  "references": [
    {
      "type": "Episode",
      "id": "urn:ard:show:49267f7d67be180d",
      "externalId": "crid://swr.de/123450",
      "title": "string",
      "url": "http://example.com",
      "alternateIds": [
        "https://normdb.ivz.cn.ard.de/sendereihe/427"
      ]
    }
  ],
  "playlistItemId": "swr3-5678",
  "hfdbIds": [
    "swrhfdb1.KONF.12345",
    "zskhfdb1.KONF.12345"
  ],
  "externalId": "M012345.001",
  "isrc": "DE012345678",
  "upc": "string",
  "mpn": "string",
  "media": [
    {
      "type": "cover",
      "url": "https://example.com/cover.jpg",
      "templateUrl": "https://example.com/cover.jpg?width={width}",
      "description": "Cover Demo Artist",
      "attribution": "Photographer XYZ",
      "isFallback": false
    }
  ],
  "plugins": [
    {
      "type": "postToThirdPartyPlatformXYZ",
      "property1": null,
      "property2": null
    }
  ],
  "id": "1234567890"
}
```

**Responses**

- `201` — Event created \*Note:\* The first request of an event for an externalId that is not registered yet, will return the status \`failed: 1\`. This indicates that a new topic for the externalId has been created, and the request needs to be repeated: \`\`\`json "statuses": { "published": 0, "blocked": 0, "failed": 1 } \`\`\` If the request returns the status \`blocked: 1\`, it indicates that you are not allowed to publish events under the given publisherId.
- `400` — Bad Request (invalid input)
- `401` — Missing authentication
- `403` — Invalid authorization
- `413` — Payload Too Large (JSON body exceeds 400kb limit)
- `500` — Internal server error

Response example, 201:

```json
{
  "statuses": {
    "published": 1,
    "blocked": 0,
    "failed": 0
  },
  "event": {
    "event": "de.ard.eventhub.v1.radio.track.playing",
    "type": "music",
    "start": "2020-01-19T06:00:00+01:00",
    "length": 240,
    "title": "Song name",
    "artist": "Sam Feldt feat. Someone Else",
    "contributors": [
      {
        "name": "Sam Feldt",
        "role": "artist",
        "normDb": {
          "type": "Person",
          "id": "1641010"
        },
        "isni": "string",
        "url": "string"
      }
    ],
    "services": [
      {
        "id": "urn:ard:permanent-livestream:49267f7d67be180d",
        "publisherId": "248000",
        "institutionId": "urn:ard:institution:a3004ff924ece1a2",
        "type": "PermanentLivestream",
        "externalId": "crid://swr.de/123450"
      }
    ],
    "references": [
      {
        "type": "Episode",
        "id": "urn:ard:show:49267f7d67be180d",
        "externalId": "crid://swr.de/123450",
        "title": "string",
        "url": "http://example.com",
        "alternateIds": [
          "https://normdb.ivz.cn.ard.de/sendereihe/427"
        ]
      }
    ],
    "playlistItemId": "swr3-5678",
    "hfdbIds": [
      "swrhfdb1.KONF.12345",
      "zskhfdb1.KONF.12345"
    ],
    "externalId": "M012345.001",
    "isrc": "DE012345678",
    "upc": "string",
    "mpn": "string",
    "media": [
      {
        "type": "cover",
        "url": "https://example.com/cover.jpg",
        "templateUrl": "https://example.com/cover.jpg?width={width}",
        "description": "Cover Demo Artist",
        "attribution": "Photographer XYZ",
        "isFallback": false
      }
    ],
    "plugins": [
      {
        "type": "postToThirdPartyPlatformXYZ",
        "property1": null,
        "property2": null
      }
    ],
    "id": "1234567890"
  },
  "trace": null
}
```
