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

How do I queue a build? #311

Open
Open
@anirbansaha96

Description

@anirbansaha96

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions