Version 1.1

/Mobile/projects/tasks/add

Inputs

Input Input Definition Required Detailed Description
pid The associated project id Yes
tlid The associated tasklist id Yes
name The name of the task Yes
desc The description of the task No
end the end date for your task No
type used to determine JSON or XML No If parameter is not passed than it will assume JSON.
sid The user's session id Yes If you do not pass a user session then no action can be taken. See the session debug section for disabling the session for debuging.


While you can pass sid as GET parameter you are also welcome and recommended to pass it via POST for more security.

Ouputs


Response Response Definition Detailed Description
statusCode The status code for the returned result. (In this case should always be Success
statusMessage The message that describes the associated status code.
id The task id The new id for the task
pid The project id
mid The milestone id
name The name of the new task
desc The description of your new task
end The end date of your new task


Sample Outputs

JSON

{"response":
  {"status":
    {"statusCode":"1",
     "statusMessage":"Success!"},
    "task":
    {"id":"325",
     "pid":"28",
     "tlid":"80",
     "name":"Sample Task",
     "desc":"My task Description",
     "end":"123456789"}
   }
}

XML

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>
    <statusCode>1</statusCode>
    <statusMessage>Success!</statusMessage>
  </status>
  <task>
    <id>325</id>
    <pid>28</pid>
    <tlid>80</tlid>
    <name>Sample Task</name>
    <desc>My task Description</desc>
    <end>123456789</end>
  </task>
</response>

Last edited Feb 22, 2012 at 8:52 PM by darxval, version 2

Comments

No comments yet.