Function name
clone-projects
Parameters
- data (Required). It is an array of project fields. The details of the fields are as follows:
id (Required)The project ID to clone.
plan_start (Required). Date. The planned start date of this project.
manager_id. ID or Name of the project manager. If not specified, defaults to the same manager of the original project.
client_id Integer. ID or Name of the client. If not specified, defaults to the same client as the original project.
phase_id. Number. The id or name of the project phase. If not specified, defaults to the same phase of the original project.
summary (Required). A short description of the project.
formula_key(Optional). The custom field for this project. You need to use the formula key of the custom field here.
Return Values:
project_id
When your data format is XML, you should post something like this
<data> <item> <!--clone projects--> <code>PRJ-101</code> <id>100</id> <manager_id>Mary Jane</manager_id> <client_id>Acme Consulting</client_id> <phase_id>In Planning</phase_id> <summary>Project #1</summary> <plan_start>2010-11-02T08:00:00</plan_start> <Other_Details>500</Other_Details> <!-- "Other_Details" is the formula key of the custom field> </item> <item> <code>PRJ-102</code> <project_id>100</project_id> <manager_id>101</manager_id> <client_id>201</client_id> <phase_id>2</phase_id> <summary>Project #1</summary> <plan_start>2010-11-02T08:00:00</plan_start> </item> </data>
In case of JSON, you should submit an array of objects with the same properties.
[ { "code" : "101", "id" : "100", "manager_id" : "Mary Jane" "client_id" : "Acme Consulting", "phase_id" : "In Planning", "summary" : "Project #1", "plan_start" : "2010-11-02T08:00:00", "Other_Details" : "500", "budget" : "100000" } { "code" : "102", ... } ]