Tasks ----- This API allows listing, retrieving, creating, updating, and deleting business tasks. Tasks are identified by their UUID. List Tasks .......... .. http:get:: /task/ List all tasks. **Sample request**: .. sourcecode:: http GET /task/ HTTP/1.1 Host: api.fieldaware.net Authorization: Token 9dcae3660ec84eac94bb506e09a9af40 Accept: application/json **Sample response**: .. sourcecode:: http HTTP/1.1 200 OK Content-Type: application/json { "count": 500, "items": [ { "name": "Service Walsh conventional battery", "uuid": "01c9373d6d22438096503fe72a7c1612", "link": { "rel": "detail", "url": "https://api.fieldaware.net/task/01c9373d6d22438096503fe72a7c1612" } }, { "name": "Install Cole emergency battery", "uuid": "01f359aabafb4ff28347bddd9a24f28a", "link": { "rel": "detail", "url": "https://api.fieldaware.net/task/01f359aabafb4ff28347bddd9a24f28a" } }, { "name": "Install Bailey bulkhead filter", "uuid": "0274f3fa2e224e17ba9e6a36ce3f4b0a", "link": { "rel": "detail", "url": "https://api.fieldaware.net/task/0274f3fa2e224e17ba9e6a36ce3f4b0a" } } ], "page": 0, "pageSize": 3, "sortedBy": [] } :query sortedBy: Available sorting criteria: ``name`` :query name: A filtering value for task name :query taxable: A filtering value :query glAccount: A filtering value for glAccount Get Task ........ .. http:get:: /task/(task_ref) Retrieve a given task. **Sample request**: .. sourcecode:: http GET /task/0274f3fa2e224e17ba9e6a36ce3f4b0a HTTP/1.1 Host: api.fieldaware.net Authorization: Token 9dcae3660ec84eac94bb506e09a9af40 Accept: application/json **Sample response**: .. sourcecode:: http HTTP/1.1 200 OK Content-Type: application/json { "glAccount": null, "mandatory": true, "name": "Service Heat Cable", "uuid": "07af3523740340fb8685ae2eece650c3", "markupType": "fixed", "taxable": true, "markupValue": 15.00, "estDuration": null, "unitPrice": 70.46, "unitCost": 55.46, "description": "", "customFields": {} } Create Task ........... .. http:post:: /task/ Create a new task. **Sample request**: .. sourcecode:: http POST /task/ HTTP/1.1 Host: api.fieldaware.net Authorization: Token 9dcae3660ec84eac94bb506e09a9af40 Accept: application/json { "name": "Test", "description": "", "mandatory": false, "estDuration": 120, "unitCost": 10.50, "unitPrice": 15.00, "markupType": "fixed", "markupValue": 20.87, "taxable": false, "tax1": { "group": "tagGr1", "name": "income" }, "tax2": { "group": "tagGr2", "name": "income" }, "glAccount": "gl account", "customFields": { "declaration key": "value" }, } :