Planfix API task.reject

From Planfix
Revision as of 08:45, 11 August 2023 by Aliona (talk | contribs) (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:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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