• JMap.Attachment.update

    Updates the metadata (subject, description, URL) of an existing attachment.

    Parameters

    • dataSourceId: string

      the JMap data source id

    • attachmentId: string

      the attachment identifier to update

    • params: JUpdateAttachmentParams

      partial attachment payload containing the new values

    Returns Promise<string>

    Example

    JMap.Attachment
    .update(
    "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "d9428888-122b-11e1-b85c-61cd3cbb3210",
    { subject: "Updated subject", description: "New details" }
    )
    .then(() => console.log("Attachment updated"))
    .catch(error => console.error("Failed to update attachment", error))