Skip to content

MoveAllCardsInListAsync

Rasmus Wulff Jensen edited this page Nov 1, 2023 · 5 revisions

Back to Card Features

Move all cards of a list to another list

Signature

/// <summary>
/// Move all cards of a list to another list
/// </summary>
/// <param name="currentListId">The id of the List that should have its cards moved</param>
/// <param name="newListId">The id of the new List that should receive the cards</param>
/// <param name="cancellationToken">Cancellation Token</param>
public async Task MoveAllCardsInListAsync(string currentListId, string newListId, CancellationToken cancellationToken = default) {...}

Examples

string idOfListToMoveAllCardsFrom = "63c939a5cea0cb006dc9e89d";
string idOfListToMoveAllCardsTo = "73c939a3223453453dc9e89d";
await _trelloClient.MoveAllCardsInListAsync(idOfListToMoveAllCardsFrom, idOfListToMoveAllCardsTo);

Clone this wiki locally