MicrosoftDocs / vsts-rest-api-specs

MIT License
158 stars 114 forks source link

For Artifacts "Get File" API, help the reader understand what value to set for "FileId". A sample would be great. #652

Open JesseCol opened 4 months ago

JesseCol commented 4 months ago

Can we improve the docs to help me understand what to set for "FileId"?

It looks like, for my case at least, i can set this as the "resource.data" value I get back from a "get artifact" call, something like:

$r = get-url  "https://dev.azure.com/org/proj/_apis/build/builds/$buildId/artifacts?artifactName=$artifactName&api-version=7.1-preview.5"
$data = $r.resource.data
get-url "https://dev.azure.com/org/proj/_apis/build/builds/$buildId/artifacts?artifactName=$artifactName&fileId=$data&fileName=dummy.json&api-version=7.1-preview.5"

Also it's not super clear what fileName should be set to.

Thanks!


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.