Skip to main content

core.cases.upload_attachment

Upload a file attachment to a case.

Inputs

string
required
The ID or short ID (e.g. CASE-0042) of the case to attach the file to.
string
required
The file content encoded in base64.
string
required
The MIME type of the file (e.g., ‘application/pdf’).
string
required
The original filename.

Examples

Upload an attachment

core.cases.upload_attachment_from_url

Upload a file attachment to a case from a URL.

Inputs

string
required
The ID or short ID (e.g. CASE-0042) of the case to attach the file to.
string
required
The URL of the file to upload.
string | null
Filename of the file to upload. If not provided, the filename will be inferred from the URL.Default: null.
map[string, string] | null
The headers to use when downloading the file.Default: null.

Examples

Upload an attachment from a URL

core.cases.list_attachments

List all attachments for a case.

Inputs

string
required
The ID or short ID (e.g. CASE-0042) of the case to list attachments for.

Examples

List attachments

core.cases.get_attachment

Get attachment metadata without downloading the content.

Inputs

string
required
The ID of the attachment to get.
string
required
The ID or short ID (e.g. CASE-0042) of the case containing the attachment.

Examples

Get attachment metadata

core.cases.get_attachment_download_url

Get a presigned S3 URL for downloading an attachment.

Inputs

string
required
The ID of the attachment.
string
required
The ID or short ID (e.g. CASE-0042) of the case containing the attachment.
integer | null
URL expiry time in seconds. If not provided, uses the default from configuration.Default: null.

Examples

Get an attachment download URL

core.cases.download_attachment

Download an attachment’s content.

Inputs

string
required
The ID of the attachment to download.
string
required
The ID or short ID (e.g. CASE-0042) of the case containing the attachment.

Examples

Download an attachment

core.cases.delete_attachment

Delete an attachment from a case.

Inputs

string
required
The ID of the attachment to delete.
string
required
The ID or short ID (e.g. CASE-0042) of the case containing the attachment.

Examples

Delete an attachment