> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Attachment

Adds one or more attachments to an issue. Attachments are posted as multipart/form-data ([RFC 1867](https://www.ietf.org/rfc/rfc1867.txt)).

Note that:

* The request must have a `X-Atlassian-Token: no-check` header, if not it is blocked. See `Special headers` for more information.
* The name of the multipart/form-data parameter that contains the attachments must be `file`.

This operation can be accessed anonymously.

**Permissions required:**

* *Browse Projects* and *Create attachments* [ project permission](https://confluence.atlassian.com/x/yodKLg) for the project that the issue is in.
* If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is configured, issue-level security permission to view the issue.

## Parameters

<div className="integrations-table">
  | Parameter       | Description                                                                                                                                                                                                                                                                                                                         |
  | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | File Identifier | The file identifier of the attachment.<br />A file identifier represents a file created or referenced earlier in the workflow (for example, from a file action or another step that produces a file).<br />See [Using with Files in Workflows](https://docs.blinkops.com/docs/workflows/building-workflows/files) for more details. |
  | File Name       | The name of the file.                                                                                                                                                                                                                                                                                                               |
  | Issue ID Or Key | The ID or key of the issue. Can be obtained via the `List Issues` action.                                                                                                                                                                                                                                                           |
</div>

## Example Output

```json theme={"dark"}
[
	{
		"self": "<string>",
		"id": "<string>",
		"filename": "<string>",
		"author": {
			"self": "<string>",
			"name": "<string>",
			"key": "<string>",
			"emailAddress": "<string>",
			"avatarUrls": {
				"48x48": "<string>",
				"24x24": "<string>",
				"16x16": "<string>",
				"32x32": "<string>"
			},
			"displayName": "<string>",
			"active": true,
			"timeZone": "<string>"
		},
		"created": "2024-10-30T08:03:29",
		"size": 768,
		"mimeType": "<string>",
		"content": "<string>"
	}
]
```

## Workflow Library Example

[Add Attachment with Jira Data Center and Send Results Via Email](https://library.blinkops.com/workflows/add-attachment-with-jira-data-center-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/add-attachment-with-jira-data-center-and-send-results-via-email/canvas" />
</div>
