-
Notifications
You must be signed in to change notification settings - Fork 2
SetDueDateOnCardAsync
Rasmus Wulff Jensen edited this page Nov 1, 2023
·
5 revisions
Set Due Date on a card
/// <summary>
/// Set Due Date on a card
/// </summary>
/// <param name="cardId">Id of the Card</param>
/// <param name="dueDate">The Due Date (In UTC Time)</param>
/// <param name="dueComplete">If Due is complete</param>
/// <param name="cancellationToken">Cancellation Token</param>
public async Task<Card> SetDueDateOnCardAsync(string cardId, DateTimeOffset dueDate, bool dueComplete = false, CancellationToken cancellationToken = default) {...}
var cardId = "63c939a5cea0cb006dc9e9dd";
var cardWithDueDate = await _trelloClient.SetDueDateOnCardAsync(cardId, DateTimeOffset.Now.AddDays(2)); //Set due date 2 days from now
If you are looking for info on a specific method in TrelloDotNet then expand the Pages above and input the 'MethodName' (Example: 'AddCardAsync')