Skip to main content

playlistUpdate Mutation

Description​

Updates an existing playlist. You can update the title, link, and entries. When updating entries, the entire entries array is replaced with the provided entries. Only the fields provided in the input are updated; other fields remain unchanged.

mutation playlistUpdate(
$playlistRef: ID!
$playlistUpdateInput: PlaylistUpdateInput
) {
playlistUpdate(
playlistRef: $playlistRef
playlistUpdateInput: $playlistUpdateInput
) {
_id
id
title
created
link
entries {
comments
}
}
}

Variables​

{
"playlistRef": "ef1d7ab3fc7b2a3865328c96",
"playlistUpdateInput": {
"title": "title",
"link": "link",
"entries": [
{
"ref": "3959db71eebc006ef7ce0c80",
"comments": "comments"
}
]
}
}

Response​

{
"playlistUpdate": {
"_id": "4288148eec65f8031a24bf7a",
"id": 8025435310254,
"title": "example",
"created": 1762430110059,
"link": "example",
"entries": [
{
"comments": "example"
}
]
}
}

Arguments​

NameTypeDescription
playlistRefID!Reference ID of the playlist to update.
playlistUpdateInputPlaylistUpdateInputPlaylist update data including title, optional link, and entries to replace.

Returns​

Playlist