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": "089e67d19f1f2e2ceb4eda2f",
"playlistUpdateInput": {
"title": "title",
"link": "link",
"entries": [
{
"ref": "4ed56df70d602f34df1bc203",
"comments": "comments"
}
]
}
}
Response
{
"playlistUpdate": {
"_id": "98ed81661a1b40ec34cbf5af",
"id": 6488888215969,
"title": "example",
"created": 1741414002748,
"link": "example",
"entries": [
{
"comments": "example"
}
]
}
}
Arguments
| Name | Type | Description |
|---|---|---|
playlistRef | ID! | Reference ID of the playlist to update. |
playlistUpdateInput | PlaylistUpdateInput | Playlist update data including title, optional link, and entries to replace. |