Skip to content

Creating a Playlist

Playlists are ordered collections of audio clips. Use them 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/

Filtering

You can filter playlists 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.
circulationNoSite ownership details. If not specified, shared among all sites.