---
schema: rendered-html/v1
title: "Attachment | Developer Portal for YouTrack and Hub Documentation"
source_url: https://www.jetbrains.com/help/youtrack/devportal/Import-Attachment.html
generated_at: 2026-06-11T14:41:11.932868+00:00
---

Feedback

Thanks for your feedback!

Was this page helpful?

YesNo

Developer Portal for YouTrack and Hub

- Developer Portal
- Apps
- MCP Tools
- YouTrack Workflows
- YouTrack Import Scripts
- Get Started with Import Scripts
- YouTrack Import API
- [Article](jetbrains__com__help__youtrack__devportal__import-article.md)
- [Attachment](Import-Attachment.html)
- [AttachmentContentWithMetadata](jetbrains__com__help__youtrack__devportal__import-attachmentcontentwithmetadata.md)
- [AttachmentMetaData](jetbrains__com__help__youtrack__devportal__import-attachmentmetadata.md)
- [Build](jetbrains__com__help__youtrack__devportal__import-build.md)
- [Comment](jetbrains__com__help__youtrack__devportal__import-comment.md)
- [DateFieldValue](jetbrains__com__help__youtrack__devportal__import-datefieldvalue.md)
- DateTimeFieldValue
- DemoClient
- DocumentFieldValue
- DocumentFieldValues
- DocumentFieldValuesStringPresentation
- DocumentFields
- DocumentInfo
- EnumElement
- EnumerableFieldPresentation
- FieldChange
- FieldValue
- FloatFieldValue
- GroupProjectField
- HistoryItem
- IntegerFieldValue
- Issue
- LinkType
- LinkValue
- OwnedValue
- PeriodFieldValue
- Project
- ProjectField
- ProjectFieldInfo
- ProjectInfo
- ProjectValue
- Reference
- ServerInfo
- StringFieldValue
- SubItem
- Tag
- TextFieldValue
- User
- UserGroup
- Version
- WorkItem
- YouTrack Form API
- YouTrack REST API
- Hub REST API

1. YouTrack Import Scripts
2. YouTrack Import API
3. [Attachment](#0)

# Attachment﻿

Last modified: 07 May 2026

Represents an attachment entity.

Extends SubItem.

## Properties﻿

| Name | Type | Description |
| --- | --- | --- |
| author | User | The user who attached the file to the issue. |
| charset | string | The charset type of the file. `null` by default. Applicable to text attachments only. |
| created | string | The date and time when the attachment was created. The expected string format is one of those returned by the `getTimestampFormats` function. |
| fileName | string | The name of the attachment file. |
| id | string | The ID of the attachment. |
| mimeType | string | The MIME type of the file. |
| updated | string | The date and time the attachment was last updated. The same as `created` by default. The expected string format is one of those returned by the `getTimestampFormats` function. |
| updatedBy | User | The user who last updated the file. The same as `author` by default. |
| visibleToGroups | Array.<UserGroup> | The user groups that can view the attachment. `null` by default. |
| visibleToUsers | Array.<User> | The users who can view the attachment. If none of the `visibleToUsers` and the `visibleToGroups` parameters are specified, the attachment becomes visible to issue or article readers. `null` by default. |

- [Attachment](/help/youtrack/devportal/Import-Attachment.html)
- [Properties](/help/youtrack/devportal/Import-Attachment.html#properties)

[Article](jetbrains__com__help__youtrack__devportal__import-article.md)[AttachmentContentWithMetadata](jetbrains__com__help__youtrack__devportal__import-attachmentcontentwithmetadata.md)

- Privacy & Security
- Terms Of Use
- Trademarks
- Legal

Copyright © 2000–2026 JetBrains s.r.o.
