Planfix API task.reject
From Planfix
To decline a task, you must call the following function:
<?xml version="1.0" encoding="UTF-8"?>
<request method="task.reject">
<account></account>
<sid></sid>
<task>
<id></id>
</task>
<reason></reason>
<signature></signature>
</request>
Name | Type | Value | Notes |
---|---|---|---|
task.id | int | ID of the task that the user is declining | |
reason | string | reason | required field; cannot be empty |
signature | string(32) | signature |
Successful execution of the function results in the following response:
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok">
<task>
<id></id>
</task>
</response>
Name | Type | Value | Notes |
---|---|---|---|
task.id | int | ID of the task that the user declined |
Otherwise, an error response will be returned:
<?xml version="1.0" encoding="UTF-8"?>
<response status="error">
<code></code>
</response>