Version 1.1

/Mobile/projects/add

Inputs

Input Input Definition Required Detailed Description
name The name of the project Yes
desc The description of the project No
end When will the project end No If you don't pass an end date, the API will auto set it for today.
budget The user's password to login No Set the budget for the project
assignme The user's password to login No You don't have to assign yourself, but if you don't you have to use addUser through project administration.
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 project id
name The name of the new project
desc The description of your new project
end The end date of your projectin epoch time
budget The budget of your project

Sample Outputs

JSON

{"response":
  {"status":
    {"statusCode":"1",
     "statusMessage":"Success!"},
    "project":
    {"id":"5",
     "name":"project Name",
     "desc":"project Description",
     "end":"123456789",
     "budget":"400"}
   }
}

XML

<?xml version="1.0" encoding="UTF-8"?> 
<response>
  <status>
    <statusCode>1</statusCode>
    <statusMessage>Success!</statusMessage>
  </status>
  <project>
     <id>5</id>
     <name>project Name</name>
     <desc>project Description </desc>
     <end>123456789 </end>
     <budget>400</budget>     
  </project>
</response> 

Last edited Feb 22, 2012 at 10:32 PM by darxval, version 10

Comments

No comments yet.