Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

How do I queue a build? #311

Open
anirbansaha96 opened this issue Jun 8, 2021 · 0 comments
Open

How do I queue a build? #311

anirbansaha96 opened this issue Jun 8, 2021 · 0 comments

Comments

@anirbansaha96
Copy link

I am trying to Queue a Build using a REST API call. I am sending a POST request to POST https://dev.azure.com/{organization}/{project}/_apis/build/builds?api-version=6.0
With the request body:

{"build" : {
  "Definition" : 1
}
}

I have also tried other request body sample. But none of them works. How do I send a request to queue this build? In the header, I am sending my PAT and it is working.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant