Planfix API task.accept: Difference between revisions
From Planfix
(Created page with "{{#seo: |title=Planfix API task.accept |titlemode=append |keywords=Planfix, API, task, task.accept, accept, api |description=Planfix API task.accept }} To work on a task, you must accept it. Function call: <source lang="xml"> <?xml version="1.0" encoding="UTF-8"?> <request method="task.accept"> <account></account> <sid></sid> <task> <id></id> </task> <signature></signature> </request> </source> {| class="wikitable" style="margin-top: 1em; width:100% " !widt...") |
(→Go To) |
||
Line 55: | Line 55: | ||
== 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 work on a task, you must accept it. Function call:
<?xml version="1.0" encoding="UTF-8"?>
<request method="task.accept">
<account></account>
<sid></sid>
<task>
<id></id>
</task>
<signature></signature>
</request>
Name | Type | Value | Notes |
---|---|---|---|
task.id | int | ID of the task that the user is accepting | |
signature | string(32) | signature |
The result of a correctly executed request will be:
<?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 accepted |
Otherwise, an error response will be returned:
<?xml version="1.0" encoding="UTF-8"?>
<response status="error">
<code></code>
</response>