Developer Portal for YouTrack and Hub Help

AttachmentContentWithMetadata

Represents the content of an attachment with metadata. Use it in an import script.

Properties

Name

Type

Description

data

Stream, string

The attachment content as obtained from Response.responseAsStream or as base64-encoded content. For reference on the Response class, see Response.

metadata

Object

The attachment metadata.

metadata.charset

string

The charset type of the file. null by default. Applicable to text attachments only.

metadata.mimeType

string

The MIME type of the file. null by default.

10 September 2026