Q: Rest API for Pull request approval process As I am trying to integrate Azure DevOps rest API in our application (Using C#). I am not able to find any API for pull request Approval process.
Please suggest and provide any solution for Approval process using REST API or other alternatives.

A: In your C# application code:

*

*If you want to create, update or delete the branch policies related to Pull Request Approval (Reviewers), you can use the "PolicyConfiguration Class" from the related .NET client libraries for Azure DevOps. The corresponding Azure DevOps REST API is "Configurations".


*

*For "Require a minimum number of reviewers", the 'configurationId' is 'fa4e907d-c16b-4a4c-9dfa-4906e5d171dd'.


*For "Automatically included reviewers", the 'configurationId' is 'fd2167ab-b0be-447a-8ec8-39368250530e'.



*If you want to add, remove reviewers from Pull Request, or set the votes (Approve, Reject, Approve with suggestions, Wait for author, etc..) of reviewers on Pull Request, you can use the "ReviewersUpdatedEvent Class", "ReviewersVotesResetEvent Class" and "ReviewerVoteUpdatedEvent Class". The corresponding Azure DevOps REST API is "Pull Request Reviewers".

[UPDATE]
Below are some samples about using .NET client libraries for Azure DevOps in C# code:

*

*C# client library samples

*microsoft/azure-devops-dotnet-samples
