{
  "description": "Remove a track from a playlist, by its index or its URI.",
  "type": "object",
  "properties": {
    "playlistId": {
      "type": "string",
      "description": "ID of the playlist to remove a track from",
      "minLength": 1
    },
    "trackIndex": {
      "type": "integer",
      "description": "Index of the track to remove (-1 to use trackUri instead)"
    },
    "trackUri": {
      "type": "string",
      "description": "URI of the track to remove (used when trackIndex is -1)"
    }
  },
  "required": [
    "playlistId",
    "trackIndex"
  ],
  "additionalProperties": false
}
