-
Notifications
You must be signed in to change notification settings - Fork 4
UpdateWebhookByCallbackUrlAsync
Rasmus Wulff Jensen edited this page Nov 1, 2023
·
3 revisions
Replace callback URL for one or more Webhooks
/// <summary>
/// Replace callback URL for one or more Webhooks
/// </summary>
/// <param name="oldUrl">The old callback URL to find</param>
/// <param name="newUrl">The new callback URL to replace it with</param>
/// <param name="cancellationToken">Cancellation Token</param>
public async Task UpdateWebhookByCallbackUrlAsync(string oldUrl, string newUrl, CancellationToken cancellationToken = default) {...}
var webhookId = "63e2892778670f4f7b7ffa2e";
Webhook webhook = await TrelloClient.GetWebhookAsync(webhookId);
string oldCallbackUrl = "https://www.host.com/api/OldFunctionTrelloWebhookEndpointReceiver";
string newCallbackUrl = "https://www.host.com/api/NewFunctionTrelloWebhookEndpointReceiver";
await TrelloClient.UpdateWebhookByCallbackUrlAsync(oldCallbackUrl, newCallbackUrl);
If you are looking for info on a specific method in TrelloDotNet then expand the Pages above and input the 'MethodName' (Example: 'AddCardAsync')