0
votes

I'd like to use the following endpoint:

https://docs.microsoft.com/en-us/rest/api/azure/devops/distributedtask/yamlschema/get?view=azure-devops-rest-6.0

I.e.

https://dev.azure.com/{org}/_apis/distributedtask/yamlschema

For that I need to create a PAT with the appropriate access, only the docs do not list which scope I need to enable.

1

1 Answers

1
votes

What PAT scope to pick in azure devops to get the yaml schema?

Based on my test , you could grant the Token Administration(Read & manage) or Tokens(Read & manage) permission to the PAT.

enter image description here

Then the Rest API could work fine.