reorderLists method

Future<ReorderListResponse> reorderLists(
  1. String id,
  2. List<int> listIds
)

Reorder all lists by sending the updated rank of list ids.

Use the /users/:id/lists method to get all list ids.

id - User slug listIds - the updated rank of list ids.

🔒 OAuth Required

Implementation

Future<ReorderListResponse> reorderLists(String id, List<int> listIds) async {
  return await _manager._authenticatedPost<ReorderListResponse>("users/$id/lists/reorder",
      body: jsonEncode({"rank": listIds}));
}