Top

Tasks

List tasks
GET /projects/:project_id/tasks
Get list of tasks added to a project
Get a task
GET /projects/:project_id/tasks/:task_id
Get details of a task
Add task
POST /projects/:project_id/tasks
Add task to a project
Update task
PUT /projects/:project_id/tasks/:task_id
Update details of a task
Delete task
DELETE /projects/:project_id/tasks/:task_id
Deleting task added to a project

List tasks

GET  /projects/:project_id/tasks

Get list of tasks added to a project

Parameters

sort_column string Sort tasks
Allowed Values: task_name, billed_hours, log_time and un_billed_hours

Sample Response

Status: 200 OK
Content Type: application/json;charset=UTF-8
{
      "code": 0,
      "message": "success",
      "task": [
        {
          "project_id": "460000000044007",
          "task_id": "460000000044009",
          "currency_id": "460000000000097",
          "customer_id": "460000000044001",
          "task_name": "Distribution Analysis",
          "project_name": "Network Distribution",
          "customer_name": "Richards Electric Company",
          "billed_hours": "12:26",
          "log_time": "12:26",
          "un_billed_hours": "00:00"
        }
      ],
      "page_context": {
        "page": 1,
        "per_page": 200,
        "has_more_page": false,
        "report_name": "Tasks",
        "sort_column": "task_name",
        "sort_order": "A"
      }
    }

Get a task

GET  /projects/:project_id/tasks/:task_id

Get details of a task

Sample Response

Status: 200 OK
Content Type: application/json;charset=UTF-8
{
      "code": 0,
      "message": "success",
      "task": {
        "project_id": "460000000044007",
        "project_name": "Network Distribution",
        "task_id": "460000000044009",
        "task_name": "Distribution Analysis",
        "description": "",
        "rate": 3.00
      }
    }

Add task

POST  /projects/:project_id/tasks

Add task to a project

Request attributes

task_name* string
[100]
Name of the task
description string
[500]
Project description
rate double Hourly rate for a task
budget_hours int Task budget hours

Sample Request

{
      "task_name": "Distribution Analysis",
      "description": "",
      "rate": 3,
      "budget_hours": ""
    }

Sample Response

Status: 201 Created
Content Type: application/json;charset=UTF-8
{
      "code": 0,
      "message": "The task has been added.",
      "task": {
        "project_id": "460000000044007",
        "project_name": "Network Distribution",
        "task_id": "460000000044009",
        "task_name": "Distribution Analysis",
        "description": "",
        "rate": 3.00
      }
    }

Update task

PUT  /projects/:project_id/tasks/:task_id

Update details of a task

Request attributes

task_name* string
[100]
Name of the task
description string
[500]
Project description
rate double Hourly rate for a task
budget_hours int Task budget hours

Sample Request

{
      "task_name": "Distribution Analysis",
      "description": "",
      "rate": "3",
      "budget_hours": ""
    }

Sample Response

Status: 200 OK
Content Type: application/json;charset=UTF-8
{
      "code": 0,
      "message": "The task information has been updated.",
      "task": {
        "project_id": "460000000044007",
        "project_name": "Network Distribution",
        "task_id": "460000000044009",
        "task_name": "Distribution Analysis",
        "description": "",
        "rate": 3
      }
    }

Delete task

DELETE  /projects/:project_id/tasks/:task_id

Deleting task added to a project

Sample Response

Status: 200 OK
Content Type: application/json;charset=UTF-8
{"code": 0,"message":"The task has been deleted."}