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 NameTypeDescription
projectIdOrKeyStringProject ID or Project Key
repoIdOrNameStringRepository ID or Repository name
numberNumberPull request number
attachmentIdNumberAttached 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"