The documentation is not clear about what are the Check Configurations and what is the Approval where and how they're used what is common and in what details are they different.
What I have done is that I have created via Azure DevOps 3 things: Approval, Branch Control and ExclusiveLock.
I was able to get them via rest API. Also I was able to use rest API to create them.
When it was required for us to update checks it got very confusing.
I can't understand why approvals have different rest API endpoint for update which is described here https://docs.microsoft.com/en-us/rest/api/azure/devops/approvalsandchecks/approvals/update?view=azure-devops-rest-6.1
The Approval model is very similar to the one I receive when I get list of checks. But this one which I receive has a property settings while the one which is described in approvals has no settings and has all fields defined on the Approval object itself.
Hi,
The documentation is not clear about what are the Check Configurations and what is the Approval where and how they're used what is common and in what details are they different. What I have done is that I have created via Azure DevOps 3 things: Approval, Branch Control and ExclusiveLock. I was able to get them via rest API. Also I was able to use rest API to create them. When it was required for us to update checks it got very confusing. I can't understand why approvals have different rest API endpoint for update which is described here https://docs.microsoft.com/en-us/rest/api/azure/devops/approvalsandchecks/approvals/update?view=azure-devops-rest-6.1
I was able to use https://docs.microsoft.com/en-us/rest/api/azure/devops/approvalsandchecks/check%20configurations/update?view=azure-devops-rest-6.1 endpoint to update an approval.
I still not clear if the Approvals which are described here https://docs.microsoft.com/en-us/rest/api/azure/devops/approvalsandchecks/approvals?view=azure-devops-rest-6.1 and approvals which I can be created using Add endpoint in Check Configuration is the same thing?
The Approval model is very similar to the one I receive when I get list of checks. But this one which I receive has a property settings while the one which is described in approvals has no settings and has all fields defined on the Approval object itself.
Here're the json example of the approval I get after I created 3 checks via portal. It is very very similar to https://docs.microsoft.com/en-us/rest/api/azure/devops/approvalsandchecks/approvals/update?view=azure-devops-rest-6.1#approval but different in regards to settings property.