# 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](v1-Response.html).   |
| 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.   |

## See also

[YouTrack Import API](YouTrack-Import-Api-Documentation.html)

