Update a pull request
PUT {{baseUrl}}/pull-requests/{{pullRequestId}}
Updates an open pull request. Include the following in the request body:
title
— (Required) A string that contains the title of the pull request.description
— A string that contains a description of the pull request.reviewers
— (Required) An array of strings that contains an updated list of the pull request's assigned reviewers. This replaces all existing users assigned to the pull request with those you pass in the request body.
Request Body
{"title"=>"{{pullRequestTitle}}", "description"=>"{{pullRequestDescription}}", "reviewers"=>["{{userId}}", "{{userId}}"]}
RESPONSES
status: OK
{"id":"4e1a6609-1a29-4037-a411-89ecc14c6cd8","createdAt":"2024-02-20T09:58:57.000Z","updatedAt":"2024-02-20T09:58:57.000Z","sourceId":"87654321-3b79068c-dbe5-41d5-a826-51be4bf646ef","destinationId":"12345678-12ece9e1-2abf-4edc-8e34-de66e74114d2","title":"Updated PR title","description":"Updated description of the pull request.","createdBy":"12345678","status":"open","forkType":"collection"}