Get List of Pull Request Attachment

Returns list of attached files on pull requests.

Role

Administrator 
Normal User 

Method

GET 

URL

/api/v2/projects/:projectIdOrKey/git/repositories/:repoIdOrName/pullRequests/:number/attachments 

URL parameters

Parameter Name Type Description
projectIdOrKey String Project ID or Project Key
repoIdOrName String Repository ID or Repository name
number Number Pull request number

Response example

Status Line / Response Header

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

Response Body

[ 
    { 
        "id": 8, 
        "name": "IMG0088.png", 
        "size": 5563, 
        "createdUser": { 
            "id": 1, 
            "userId": "admin", 
            "name": "admin", 
            "roleType": 1, 
            "lang": "ja", 
            "mailAddress": "eguchi@nulab.example" 
        }, 
        "created": "2014-10-28T09:24:43Z" 
    }, 
    ... 
]