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

Method updateAttachment

integrations/linear/src/index.ts:263–279  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    params: { id: string; input: L.AttachmentUpdateInput }
  )

Source from the content-addressed store, hash-verified

261 }
262
263 updateAttachment(
264 key: IntegrationTaskKey,
265 params: { id: string; input: L.AttachmentUpdateInput }
266 ): LinearReturnType<AttachmentPayload, "attachment"> {
267 return this.runTask(
268 key,
269 async (client) => {
270 const payload = await client.updateAttachment(params.id, params.input);
271 return serializeLinearOutput(await payload.attachment);
272 },
273 {
274 name: "Update Attachment",
275 params,
276 properties: [{ label: "Attachment ID", text: params.id }],
277 }
278 );
279 }
280
281 attachmentLinkDiscord(
282 key: IntegrationTaskKey,

Callers

nothing calls this directly

Calls 2

runTaskMethod · 0.95
serializeLinearOutputFunction · 0.85

Tested by

no test coverage detected