Version 1.1
/Mobile/projects/tasks/edit
Inputs
Input | Input Definition | Required | Detailed Description |
tid | The task id | Yes | |
name | The new name for the tasklist | No | If you do not pass this parameter, it will retrieve what is in the database. |
desc | The new description for the tasklist | No | If you do not pass this parameter, it will retrieve what is in the database. |
tlid | The associated tasklist id | No | If you do not pass this parameter, it will retrieve what is in the database. |
uid | Associate this task with a user id | 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 debugging. |
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 | |
name | The name of the task | |
description | The description of the task | |
tlid | The associated tasklist id | |
uid | The user id associated with this task | |
Sample Outputs
JSON
{"response":
{"status":
{"statusCode":"1",
"statusMessage":"Success!"},
"task":
{"id":"1",
"name":"task Name",
"desc":"The task description",
"tlid":"12",
"uid":"1"}
}
}
XML
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>
<statusCode>1</statusCode>
<statusMessage>Success!</statusMessage>
</status>
<task>
<id>1</id>
<name>task Name </name>
<desc> The task description </desc>
<tlid>12</tlid>
<uid>1</uid>
</task>
</response>