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