reorderWatchlists method

Future<ReorderListResponse> reorderWatchlists(
  1. List<int> listIds
)

Reorder all items on a user's watchlist by sending the updated rank of list item ids.

Use the /sync/watchlist method to get all list item ids.

listIds - the updated rank of list ids.

🔒 OAuth Required

Implementation

Future<ReorderListResponse> reorderWatchlists(List<int> listIds) async {
  return await _manager._authenticatedPost<ReorderListResponse>(
      "sync/watchlist/reorder",
      body: jsonEncode({"rank": listIds}));
}