3

I have an API that I want to run a pipeline in a specific branch.

In DevOps, you have the option to select a branch/commit that you want to run the pipeline on:

enter image description here

How can I use this via the REST API - Run a pipeline request?

REST API - Run pipeline

Is there any parameter in request body that allows me to define it?

Thanks in advance!

nunolima41
  • 57
  • 5
  • I don't think this is a duplicate. The other question is for the builds api, this is for the pipelines api – UnionP Nov 12 '21 at 20:28
  • You can accomplish this via the resources property in the body, see this answer https://stackoverflow.com/a/63656775/892770: { "resources": { "repositories": { "self": { "refName": "" } } } } – UnionP Nov 12 '21 at 20:45

0 Answers0