Version 1.1
/Mobile/projects/edit
Inputs
Input | Input Definition | Required | Detailed Description |
pid | The project id | Yes | |
name | The new name for the project | No | If you do not pass this parameter, it will retrieve what is in the database. |
desc | The new description for the project | No | If you do not pass this parameter, it will retrieve what is in the database. |
end | The new end date for the project | No | If you do not pass this parameter, it will retrieve what is in the database. |
budget | The new budget for the project | No | If you do not pass this parameter, it will retrieve what is in the database. |
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 project | |
description | The description of the project | |
end | The end date of the project in epoch time. | |
budget | The budget for the project | |
Sample Outputs
JSON
{"response":
{"status":
{"statusCode":"1",
"statusMessage":"Success!"},
"project":
{"id":"1",
"name":"Project Name",
"desc":"The Project description",
"end":"123456789",
"budget":"4500"}
}
}
XML
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>
<statusCode>1</statusCode>
<statusMessage>Success!</statusMessage>
</status>
<project>
<id>1</id>
<name>Project Name </name>
<desc> The Project description </desc>
<end> 123456789 </end>
<budget>4500</budget>
</project>
</response>