Azure DevOps Rest API missing data for service connection checks config (required template, etc)

Copper Contributor

couldn't get it working by using ADO rest API to get information for service connection's checks configs, e.g. required templates, branch controls, etc. 

the setting is under project settings-> service connections -> approvals and checks


basically I tried /_apis/policy/configurations, 

couldn't find the required information, can you please advise how i can retrieve these information and update it via rest api for bulk operations? thanks
1 Reply
I made a few guesses with the parameters, and then I was able to retrieve the information like this:

/_apis/pipelines/checks/configurations?&$expand=settings&resourceType=endpoint&resourceId={id of service connection}

Where id of service connection is from /_apis/serviceendpoint/endpoints