Version 1.1

/Mobile/projects/milestones/add

Inputs

Input Input Definition Required Detailed Description
mid The milestone id Yes
name The new name of the milestone No
desc The new description of the milestone No
end When will the milestone end No If you don't pass an end date, the API will auto set it for today.
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 milestone id Used for updating the milestone
pid The associated project id
name The name of the new milestone
desc The description of your new milestone
end The end date of your milestone in epoch time


Sample Outputs

JSON

{"response":
  {"status":
    {"statusCode":"1",
     "statusMessage":"Success!"},
    "milestone":
    {"id":"2",
     "pid":28",
     "name":"milestone Name",
     "desc":"milestone Description",
     "end":"123456789"}
   }
}

XML

<?xml version="1.0" encoding="UTF-8"?> 
<response>
  <status>
    <statusCode>1</statusCode>
    <statusMessage>Success!</statusMessage>
  </status>
  <milestone>
     <id>2</id>
     <pid>28</pid>
     <name>Milestone Name</name>
     <desc>milestone Description </desc>
     <end>123456789 </end>
  </milestone>
</response> 

Last edited Feb 22, 2012 at 7:55 PM by darxval, version 3

Comments

No comments yet.