Skip to content

Function: getLatestWebhookInvocation() ​

ts
function getLatestWebhookInvocation(
   client, 
   parameters, 
   options?
): Promise<unknown>;

Defined in: src/server/api/webhooks.ts:174

Returns the most recent delivery of a webhook. Requires administrator permission. Until the webhook has been delivered once Jira answers 204 and this resolves to undefined; the 204 is deliberately not declared, because declaring it is what makes the whole call type as void and hides the body that does arrive.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ webhookId: number; }-
parameters.webhookIdnumberThe id of the webhook.
options?RequestOptions-

Returns ​

Promise<unknown>