Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Get a pull request

GET {{baseUrl}}/pull-requests/{{pullRequestId}}

Gets information about a pull request, such as the source and destination details, who reviewed the pull request, the merge's current status, and whether the element is accessible.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "createdAt": "2024-02-20T09:55:46.000Z", "updatedAt": "2024-02-20T09:58:38.000Z", "id": "4e1a6609-1a29-4037-a411-89ecc14c6cd8", "title": "Test PR", "description": "This is a test pull request.", "createdBy": "12345678", "updatedBy": "12345678", "comment": "Missing descriptions in requests", "forkType": "collection", "source": { "id": "87654321-3b79068c-dbe5-41d5-a826-51be4bf646ef", "name": "test-collection", "forkName": "Taylor Lee's fork", "exists": true // Whether the element is present and not deleted. }, "destination": { "id": "123456789-24f57217-1169-4b7c-a810-0e957c04eaa5", "name": "test-collection", "exists": true // Whether the element is present and not deleted. }, "status": "declined", // The pull request's status: declined, open, approved "merge": { "status": "inactive" // The merge's current status: inactive, inprogress, failed }, "reviewers": [ { "id": "12345678", "status": "declined" } ] }



Curl
curl -X GET 'https://api.getpostman.com/pull-requests/pullRequestId'

ENDPOINTS