Contents
Download Pull Request Attachment
Downloads attached files on pull requests.
Role
Administrator
Normal User
Method
GET
URL
/api/v2/projects/:projectIdOrKey/git/repositories/:repoIdOrName/pullRequests/:number/attachments/:attachmentId
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 |
attachmentId | Number | Attached file’s ID |
Response example
Status Line / Response Header
HTTP/1.1 200 OK
Content-Type:application/octet-stream
Content-Disposition:attachment;filename="attachment.doc"