Link Shared Files to Issue

Links shared files to issue.

Role

Administrator 
Normal User 

Method

POST 

URL

/api/v2/issues/:issueIdOrKey/sharedFiles 

URL parameters

Parameter Name Type Description
issueIdOrKey String Issue ID or Issue key

Form parameters

Content-Type:application/x-www-form-urlencoded 
Parameter Name Type Description
fileId[] (Required) Number Shared File ID

Response example

Status Line / Response Header

HTTP/1.1 200 OK 
Content-Type:application/json;charset=utf-8 

Response Body

[ 
    { 
        "id": 4056,
        "projectId": 5, 
        "type": "file", 
        "dir": "/design/", 
        "name": "site.png", 
        "size": 2735, 
        "createdUser": { 
            "id": 5686, 
            "userId": "takada", 
            "name": "takada", 
            "roleType":2, 
            "lang":"ja", 
            "mailAddress":"takada@nulab.example",
            "lastLoginTime": "2022-09-01T06:35:39Z"
        }, 
        "created": "2009-02-27T03:26:15Z", 
        "updatedUser": { 
            "id": 5686, 
            "userId": "takada", 
            "name": "takada", 
            "roleType": 2, 
            "lang": "ja", 
            "mailAddress": "takada@nulab.example",
            "lastLoginTime": "2022-09-01T06:35:39Z"
        }, 
        "updated":"2010-05-02T17:37:10Z" 
    }, 
    ... 
]