Azure DevOps API - Problem Using Patch Method on Build Definition

Nguyen, Andrew 1 Reputation point


I am trying to create a script to automatically update the branch of a set of build definitions but currently testing it out with Postman with the API.

I tried changing the branch variable on an existing build instance and that worked just fine but when I tried to change it on a build definition since we want to run a new build with the changed branch, I am getting

"count": 1,
"value": {
"Message": "The requested resource does not support http method 'PATCH'."

Does the build definition not have anyway to update the data thru API?

I am calling to{organization}/{project}/_apis/build/definitions/{idName}?api-version=5.1

On the documentation for updating Definition (

The example here is using PUT but that seem like it'll have a bigger room of error needing to overwrite the whole configuration.

Any help would be much appreciated. Thanks!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,614 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,330 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous

    Just a heads up, they're actively answering Devops questions in dedicated forums here.

    --please don't forget to Accept as answer if the reply is helpful--

    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.