Skip to content

Creating a Playlist

A playlist is an ordered collection of audio clips. Use playlists to group related clips together, for example, a series of news segments, a curated listening experience, or chapters of an audiobook.

Prerequisites

1. Create a playlist

Create a playlist by providing a list of clip IDs and their positions:

Terminal window
curl -X POST https://api.[org].arcpublishing.com/audiocenter/api/editorial/v1/playlists/ \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"items": [
{ "clip_id": "first_clip_id", "position": 1 },
{ "clip_id": "second_clip_id", "position": 2 },
{ "clip_id": "third_clip_id", "position": 3 }
],
"tags": ["morning-news", "2026-03"]
}'

The API returns 201 Created with the playlist ID and a Location header pointing to the new resource.

2. Retrieve a playlist

Terminal window
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
https://api.[org].arcpublishing.com/audiocenter/api/editorial/v1/playlists/{playlist_id}

The response includes the ordered list of items, tags, and metadata:

{
"id": "playlist_id",
"items": [
{ "clip_id": "first_clip_id", "position": 1 },
{ "clip_id": "second_clip_id", "position": 2 },
{ "clip_id": "third_clip_id", "position": 3 }
],
"tags": ["morning-news", "2026-03"],
"circulation": { ... },
"created_at": "2026-03-22T12:00:00Z",
"updated_at": "2026-03-22T12:00:00Z"
}

3. Update a playlist

Use PATCH to update a playlist: for example, to reorder clips, add new ones, or change tags:

Terminal window
curl -X PATCH https://api.[org].arcpublishing.com/audiocenter/api/editorial/v1/playlists/{playlist_id} \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"items": [
{ "clip_id": "second_clip_id", "position": 1 },
{ "clip_id": "first_clip_id", "position": 2 },
{ "clip_id": "new_clip_id", "position": 3 }
],
"tags": ["morning-news", "2026-03", "updated"]
}'

Returns 204 No Content on success. Use PUT instead to fully replace the playlist.

4. List playlists

Terminal window
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
https://api.[org].arcpublishing.com/audiocenter/api/editorial/v1/playlists/

Filters

You can filter playlists by using query parameters:

  • include_tags / exclude_tags: Filter by tags
  • sites: Filter by site IDs
  • Date filters: created_after, created_before, updated_after, updated_before
Terminal window
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
"https://api.[org].arcpublishing.com/audiocenter/api/editorial/v1/playlists/?include_tags=morning-news"

5. Delete a playlist

Terminal window
curl -X DELETE https://api.[org].arcpublishing.com/audiocenter/api/editorial/v1/playlists/{playlist_id} \
-H "Authorization: Bearer YOUR_API_TOKEN"

Playlist fields reference

Create / update playlist

FieldRequiredDescription
itemsYesArray of playlist items, each with clip_id and position.
items[].clip_idYesThe ID of an existing audio clip.
items[].positionYesPositive integer defining playback order. Must be unique within the playlist.
tagsNoTags for organization and filtering.
circulationNoWhich sites can access this playlist: a canonical site (cid) plus a sites set. Defaults to {cid: "global", sites: ["global"]}, which makes the playlist accessible on every site.