Unbale to update project using REST API

Mustaffa, Raihana 1 Reputation point
2020-08-02T16:28:33.07+00:00

Hi,

I want to change the project description and the process template using the the Rest API :

PATCH https://dev.azure.com/{organization}/_apis/projects/{projectId}?api-version=5.1

My Rest Body is as below :
{
"name": "FifthProject",
"description": "Changes",
"capabilities": {
"versioncontrol": {
"sourceControlType": "Git"
},
"processTemplate": {
"templateTypeId": "6b724908-ef14-45cf-84f8-768b5384da45"
}
}
}

I am getting the error response as :
{
"$id": "1",
"innerException": null,
"message": "The project update is invalid.\r\nParameter name: projectUpdate",
"typeName": "System.ArgumentException, mscorlib",
"typeKey": "ArgumentException",
"errorCode": 0,
"eventId": 0
}

Can you please let me know,what I am missing and what is the parameter projectUpdate. Its not mentioned in the documentation.
https://learn.microsoft.com/en-us/rest/api/azure/devops/core/projects/update?view=azure-devops-rest-5.1

And i couldn't find any examples for the same. Please guide me with a proper example

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,739 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BhargaviAnnadevara-MSFT 5,466 Reputation points
    2020-08-17T11:04:51.973+00:00

    @Mustaffa, Raihana Thanks for reaching out. Azure DevOps and its services are not yet supported on the Microsoft Q&A platform.

    Requesting you to post your query on Developer Community instead, where the Azure DevOps Team and community are active and answering questions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.