Get Number of Pull Requests

Returns number of pull requests.

Role

Administrator 
Normal User 

Method

GET 

URL

/api/v2/projects/:projectIdOrKey/git/repositories/:repoIdOrName/pullRequests/count 

URL parameters

Parameter Name Type Description
projectIdOrKey String Project ID or Project Key
repoIdOrName String Repository ID or Repository name

Response example

Status Line / Response Header

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

Response Body

{ 
    "count": 10 
}