Function name
create-tasks
HTTP Parameters
data (Required). It is an array of task fields. The details of the fields are as follows:
...
When your data format is XML, you should post the data parameter something like this
Code Block | ||
---|---|---|
| ||
<data> <item> <!--create tasks--> <project_id>100</project_id> <summary>Task #1</summary> <detail>This is the task description</detail> <is_manual>true</is_manual> <plan_start>2010-11-02T08:00:00</plan_start> <plan_finish>2010-11-04T17:00:00</plan_finish> <parent_id>12345</parent_id> <predecessors>121121SS,454322FF</predecessors> <priority>2</priority> <assignments>10001[20%],100010[50%]</assignments> <c459099>500</c459099> <!--Formula key of the custom field> </item> <item> <project_id>100</project_id> <is_manual>false</is_manual> <constraint_type>MSO</constraint_type> <constraint_date>2010-11-04T17:00:00</constraint_date> <duration>10d</duration> <summary>Task #2</summary> <detail>This is the task description</detail> <assignments>10001[50h]</assignments> </item> </data> |
In the case of JSON, you should submit an array of objects with the same properties as the data parameter.
Code Block |
---|
[ { "project_id" : "100", "summary" : "Task #1", "detail" : "This is the task description", "parent_id" : "12345", "predecessors" : "123121", "priority: : "2", "plan_start" : "2010-11-02T08:00:00", "plan_finish" : "2010-11-04T17:00:00", "assignments" : "10001[20%]", "c459099" : "500" } ] |