Forum Discussion
Jacob_Peterson
Sep 06, 2023Copper Contributor
Enhance YAML Pipelines 'Changes' API Endpoint to allow user to specify the 'artifact'
There exists an API endpoint that allows a user to request the changes for a Classic Release run and pass the Artifact Alias that they would like the changes from: https://vsrm.dev.azure.com/{collec...
Kidd_Ip
Sep 01, 2025MVP
Try Build Changes API directly:
Use the Builds - Get Build Changes API to retrieve changes from the build pipeline:
GET https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/changes?api-version=7.1
To make this work:
- Use predefined variables like resources.pipeline.{alias}.runID to get the build ID of the referenced pipeline.
- Then call the above API with that build ID to get the changes.
In YAML:
steps:
- script: echo $(resources.pipeline.myBuildPipeline.runID)
Use that ID in your script or REST call to fetch changes.