Creates the Project

URL : v3/tasks/project/create

Method : POST

Query Parameters :

Parameter Type Optional/Required Description
name string Required Name of the Project

Response :

{

 "success":true,

 "message":"Project Created Successfully."

}

Fetches all the Projects Without Pagination.

URL : tasks/project/view

Method : GET

Response :

{

 "success":true,"data":[{"id":1,"name":"Sample","created_at":"2020-01-02 09:53:03","updated_at":"2020-01-02 09:53:03"}]
}

Deletes the Project.

URL : tasks/project/delete/{projectId}

Method : DELETE

Query Parameters :

Parameter Type Optional/Required Description
projectID string Required Project ID to be deleted

Response :

{

 "success":true,

 "message":"Project Deleted successfully."

}

Edits the Project.

URL : tasks/project/edit/{projectId}

Method : POST

Query Parameters :

Parameter Type Optional/Required Description
projectID string Required Project ID to be edited
name string Required Name of the project

Response :

{

 "success":true,

 "message":"Project Updated successfully."

}

Creates the TaskList

URL : tasks/tasklist/create

Method : POST

Query Parameters :

Parameter Type Optional/Required Description
name string Required Name of the Project
projectId string Required Id of the Project to which this tasklist belongs

Response :

{

 "success":true,

 "message":"Tasklist Created Successfully."

}

Fetches all the tasklists Without Pagination.

URL : tasks/tasklist/view

Method : GET

Response :

{

"success":true,"data":[{"id":1,"name":"Defalt","project_id":1,"created_at":"2020-01-02 10:02:43","updated_at":"2020-01-02 10:02:43"}]
}

Deletes the Tasklist.

URL : tasks/tasklist/delete/{tasklistID}

Method : DELETE

Query Parameters :

Parameter Type Optional/Required Description
tasklistID string Required Tasklist ID to be deleted

Response :

{

 "success":true,

 "message":"Tasklist Deleted successfully."

}

Edits the Tasklist.

URL : tasks/tasklist/edit/{tasklistId}

Method : POST

Query Parameters :

Parameter Type Optional/Required Description
tasklistId string Required Tasklist ID to be edited
name string Required Name of the tasklist
projectID string Required Project ID to which the tasklist belongs

Response :

{

 "success":true,

 "message":"Tasklist Updated successfully."

}

Filter and Return Tasks.

URL : tasks/get-all-tasks

Method : GET

Query Parameters :

Parameter Type Optional/Required Description
isPrivate string Optional When Set Returns all Private Tasks
isComplete string Optional When Set Returns all Completed Task
ticketIds array Required When Set Return tasks associated with tickets in parameter
projects array Optional When Set Return tasks associated with specific projects in parameter
taskLists array Optional When Set Return tasks associated with specific tasklists in parameter
assignedTo array Optional When Set Return tasks assigned to specific agents in parameter
sortOrder string Optional When Set Sorts the task (ASC/DESC)
serachTerm string Optional When Set Return tasks matching the search term
limit string Optional Limits the tasks displayed per page

Response :

{

 "success":true,"data":{"current_page":1,"first_page_url":"http:\/\/localhost\/public\/tasks\/get-all-tasks?page=1","from":1,"last_page":1,"last_page_url":"http:\/\/localhost\/public\/tasks\/get-all-tasks?page=1","next_page_url":null,"path":"http:\/\/localhost\/public\/tasks\/get-all-tasks","per_page":"10","prev_page_url":null,"to":1,"total":1,"tasks":[{"id":1,"task_name":"Simp","task_description":"Sample Description of 100 Characters","created_at":"2020-01-02 10:07:03","ticket_id":1,"status":"Open","title":"Simple","start":{"date":"2020-01-02 10:34:44.116515","timezone_type":3,"timezone":"Europe\/London"},"end":{"date":"2020-01-02 10:34:44.119676","timezone_type":3,"timezone":"Europe\/London"},"url":"http:\/\/localhost\/public\/task\/1\/edit","name":"Simple"}]}

}

Creates the Task

URL : tasks/task/

Method : POST

Query Parameters :

Parameter Type Optional/Required Description
task_name string Required Name of the Project
task_description string Required Task Description
task_start_dat string Required Task start date
task_end_date string Required Task End Date
due_alert string Required Due Alert(5_minutes_before,15_minutes_before etc.)
alert_repeat string Required Alert Repeat Frequency(never,daily etc)
associated_ticket string Required ID of the ticket to which this task belongs
assignee array Required List of Assignees to this task
isPrivate string Required Creates the task as Private task
task_list_id string Required ID of the tasklist to which this task belongs to

Response :

{

 "success":true,

 "message":"Task Created Successfully."

}

Updates the Task

URL : tasks/task/

Method : POST

Query Parameters :

Parameter Type Optional/Required Description
task_name string Required Name of the Project
task_description string Required Task Description
task_start_dat string Required Task start date
task_end_date string Required Task End Date
due_alert string Required Due Alert(5_minutes_before,15_minutes_before etc.)
alert_repeat string Required Alert Repeat Frequency(never,daily etc)
associated_ticket string Required ID of the ticket to which this task belongs
assignee array Required List of Assignees to this task
isPrivate string Required Creates the task as Private task
task_list_id string Required ID of the tasklist to which this task belongs to

Response :

{

 "success":true,

 "message":"Task Updated Successfully."

}

Fetches all the tasklists Without Pagination.

URL : tasks/tasklist/view

Method : POST

Response :

{

"success":true,"data":[{"id":1,"name":"Defalt","project_id":1,"created_at":"2020-01-02 10:02:43","updated_at":"2020-01-02 10:02:43"}]
}

Deletes the Task.

URL : tasks/task-delete/{taskID}

Method : DELETE

Query Parameters :

Parameter Type Optional/Required Description
taskID string Required Task ID to be deleted

Response :

{

 "success":true,

 "message":"Task Deleted successfully."

}

Fetches all the tasklists Without Pagination.

URL : tasks/tasklist/view

Method : POST

Response :

{

"success":true,"data":[{"id":1,"name":"Defalt","project_id":1,"created_at":"2020-01-02 10:02:43","updated_at":"2020-01-02 10:02:43"}]
}

Changed the Task Status.

URL : tasks/change-task/{id}/{status}

Method : DELETE

Query Parameters :

Parameter Type Optional/Required Description
id string Required Task ID to change status
status string Required Status to be updated (open,close,inprogress)

Response :

{

 "success":true,

 "message":"Task Status Changed successfully."

}
Tagged:

Leave a Reply

Your email address will not be published. Required fields are marked *