Update Projects

Function name

update-projects

Parameters

  • data (Required). It is an array of project fields. The details of the fields are as follows:

                            id (Required). Integer. ID of the project.
                            All other fields are same as those for the create projects function but all fields are optional.

Return values:

Nothing

When your data format is XML, you should post something like this

<data>
    <item> <!-- update projects.
     <id>1919191 </id> <!--id of the project to update-->
     <budget>100000</budget>
    </item>
    <item>
     <id>19198192</id>
     <summary>Project #2</summary>
     <priority>1</priority>
     <plan_start>2010-11-02T08:00:00</plan_start>
     <deadline>2010-11-04T17:00:00</deadline>
     <budget>200000</budget>
     <formula_key>500</formula_key> <!--You need to use the formula key of the custom field --> 
    </item>
</data>

In case of JSON, you should submit an array of objects with the same properties.

[
  {
    "id" : "1919191",
    "budget" : "100000"
   }
   {
     "id" : "19198192",
     "summary" : "Project #2",
     "priority" : "1", 
     "plan_start" : "2010-11-02T08:00:00"
     "deadline" : "2010-11-04T17:00:00"
     "formula_key" : "500"
   }
]