MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / delete

Method delete

integrations/airtable/src/webhooks.ts:158–182  ·  view source on GitHub ↗
(key: IntegrationTaskKey, { baseId, webhookId }: { baseId: string; webhookId: string })

Source from the content-addressed store, hash-verified

156 }
157
158 delete(key: IntegrationTaskKey, { baseId, webhookId }: { baseId: string; webhookId: string }) {
159 return this.runTask(
160 key,
161 async (client, task, io) => {
162 const response = await fetch(`${apiUrl}/${baseId}/webhooks/${webhookId}`, {
163 method: "DELETE",
164 headers: {
165 Authorization: `Bearer ${client._apiKey}`,
166 },
167 redirect: "follow",
168 });
169
170 if (!response.ok) {
171 await handleWebhookError(response, "WEBHOOK_DELETE");
172 }
173 },
174 {
175 name: "Delete webhook",
176 params: {
177 baseId,
178 webhookId,
179 },
180 }
181 );
182 }
183
184 async update(
185 key: IntegrationTaskKey,

Callers 1

updateMethod · 0.95

Calls 3

handleWebhookErrorFunction · 0.70
fetchFunction · 0.50
runTaskMethod · 0.45

Tested by

no test coverage detected