Planfix API task.changeExpectDate: Difference between revisions
From Planfix
No edit summary |
No edit summary |
||
| Line 24: | Line 24: | ||
|- | |- | ||
|expectDate || DateTime|| new task completion date|| | |expectDate || DateTime|| new task completion date|| | ||
|- | |- | ||
|signature ||string(32) || signature|| | |signature ||string(32) || signature|| | ||
| Line 57: | Line 47: | ||
|- | |- | ||
|} | |} | ||
Otherwise, an error response will be returned: | Otherwise, an error response will be returned: | ||
Latest revision as of 07:56, 28 January 2025
If for some reason a user can't complete a task in time, they can postpone the task's completion date. Function call format:
<?xml version="1.0" encoding="UTF-8"?>
<request method="task.changeExpectDate">
<account></account>
<sid></sid>
<task>
<id></id>
</task>
<expectDate></expectDate>
<signature></signature>
</request>| Name | Type | Value | Note |
|---|---|---|---|
| task.id | int | task ID | |
| expectDate | DateTime | new task completion date | |
| signature | string(32) | signature |
Successful execution will return the following response:
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
<task>
<id></id>
<endTime></endTime>
</task>
</response>| Name | Type | Value | Notes |
|---|---|---|---|
| task.id | int | task ID | |
| task.endTime | DateTime | If the endTime parameter is not included in the response, this indicates that the request was sent to the assignee as a request to change the date. |
Otherwise, an error response will be returned:
<?xml version="1.0" encoding="UTF-8"?>
<response status="error">
<code></code>
</response>