cancelWebhookReplayTask()
Requests cancellation for one in-progress replay task.
Usage
The following example shows a basic usage of the backend client from @wacht/nextjs/server.
import { wachtClient } from '@wacht/nextjs/server';export async function example() { const client = await wachtClient(); const appSlug: string = 'appslug'; const taskId: string = 'taskid-123'; return client.webhooks.cancelWebhookReplayTask(appSlug, taskId);}Signature
function cancelWebhookReplayTask( appSlug: string, taskId: string,): Promise<ReplayTaskCancelResponse>Parameters
›appSlug?: string | undefined;
appSlug?: string | undefined;Webhook app slug.
›taskId?: string | undefined;
taskId?: string | undefined;Replay task id.
Return value
›status?: string | undefined;
status?: string | undefined;Cancellation status.
›message?: string | undefined;
message?: string | undefined;Backend status message.