Skip to content

Upload an attachment

POST
/issues/{issue}/attachments
curl --request POST \
--url http://localhost:8100/api/v1/issues/WEB-12/attachments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@file
issue
required
string

Issue key (WEB-12, case-insensitive) or numeric id

Media typemultipart/form-data
object
file
required
string format: binary

Stored

Media typeapplication/json
object
data
object
id
integer
name
string
size
integer
type
string
url
string format: uri

Example generated

{
"data": {
"id": 1,
"name": "example",
"size": 1,
"type": "example",
"url": "https://example.com"
}
}