-
Notifications
You must be signed in to change notification settings - Fork 4
AddLabelAsync
Rasmus Wulff Jensen edited this page Nov 1, 2023
·
5 revisions
Add a new label to the Board
Not to be confused with
AddLabelsToCardAsync
that assign labels to cards
/// <summary>
/// Add a new label to the Board (Not to be confused with 'AddLabelsToCardAsync' that assign labels to cards)
/// </summary>
/// <param name="label">Definition of the new label</param>
/// <param name="cancellationToken">Cancellation Token</param>
/// <returns>The newly created label</returns>
public async Task<Label> AddLabelAsync(Label label, CancellationToken cancellationToken = default) {...}
var boardId = "63c939a5cea0cb006dc9e88b";
var bugLabel = await _trelloClient.AddLabelAsync(new Label(boardId, "Bug", "red"));
If you are looking for info on a specific method in TrelloDotNet then expand the Pages above and input the 'MethodName' (Example: 'AddCardAsync')