Delete Pull Request Attachments

Deletes attached files on pull requests.

Role

Administrator 
Normal User 

Method

DELETE 

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/json;charset=utf-8 

Response Body

{ 
        "id": 8, 
        "name": "IMG0088.png", 
        "size": 5563, 
        "createdUser": { 
            "id": 1, 
            "userId": "admin", 
            "name": "admin", 
            "roleType": 1, 
            "lang": "ja", 
            "nulabAccount": {
                "nulabId": "Prm9ZD9DQD5snNWcSYSwZiQoA9WFBUEa2ySznrSnSQRhdC2X8G",
                "name": "admin",
                "uniqueId": "admin"
            },
            "mailAddress": "eguchi@nulab.example" ,
            "lastLoginTime": "2022-09-01T06:35:39Z"
        }, 
        "created": "2014-10-28T09:24:43Z" 
    }