I am using the Azure DevOps REST API to create a serviceendpoint/serviceconnection which works fine. I am using the following endpoint: https://learn.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints/create?view=azure-devops-rest-6.0&tabs=HTTP
However we would like to specify a group of approvers as you can do via the Azure DevOps portal like shown in the attached image
Project Settings->Serviceconnections-> Approvals and check
Can this be done via the Azure DevOps REST API?
I reviewed the Microsoft docs with regard to Azure DevOps REST API.
2
Answers
Have not tried this myself, but a little reverse engineering of the Azure DevOps UI leads me to believe there is a generic API object for checks and approvals used by various object types within ADO.
I think Check Configurations API for approvals and checks is what you need. This does use version 7.1 of the API though.
Yes. We can achieve this via Rest API.
You can use the Rest API: Check Configurations – Add to add approvers to service endpoint.
Here is an example:
API URL:
Request Body:
Result: