Edit draft
edit_draftApply multiple track-list edits atomically—add, remove, reorder, filter, or update metadata—and undo changes, using expectedRevision to prevent edits to unseen drafts.
Instructions
Apply one or more edits atomically: remove_tracks (by id from get_draft view=tracks), add_track (URI, URL or "Artist - Title"), exclude_artist, set_artist_track_count, set_artist_source (fix a wrong artist match), move, shuffle, reorder, set_meta (name/description/public), filter (explicit/versions), undo. Pass expectedRevision from the last get_draft so edits never apply to a list the user has not seen. While the draft is still building only exclude_artist, set_artist_track_count, set_artist_source, filter and set_meta are allowed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| draftId | Yes | ||
| expectedRevision | No |