Planfix API task.reject: Difference between revisions

From Planfix
Jump to: navigation, search
(Created page with "{{#seo: |title=Planfix API task.getList |titlemode=append |keywords=Planfix, API, task, getList, get, list, api |description=Planfix API task.getList }} To decline a task, you must call the following function: <source lang="xml"> <?xml version="1.0" encoding="UTF-8"?> <request method="task.reject"> <account></account> <sid></sid> <task> <id></id> </task> <reason></reason> <signature></signature> </request> </source> {| class="wikitable" style="margin-top:...")
 
 
Line 58: Line 58:
== Go To ==
== Go To ==
*[[Planfix API:Tasks]]
*[[Planfix API:Tasks]]
*[[Error codes]]
*[[Error codes XML API v1|Error codes]]
*[[List of functions]]
*[[List of functions]]

Latest revision as of 09:39, 6 March 2024

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>


Go To