Contents
Post Attachment File
Posts an attachment file for issue or wiki. Returns id of the attachment file.
The file will be deleted after it has been attached. If attachment fails, the file will be deleted an hour later.
Role
Administrator
Normal User
Reporter
Guest Reporter
Method
POST
URL
/api/v2/space/attachment
Form parameters
// Whole
--- Content-Type:multipart/form-data
// File part
--- Content-Disposition: form-data; name="file"; filename="file name"
--- Content-Type: application/octet-stream etc.
Response example
Status Line / Response Header
HTTP/1.1 200 OK
Content-Type:application/json;charset=utf-8
Response Body
{
"id": 1,
"name": "test.txt",
"size": 8857
}