# Task API

### **Get Tasks with paginated**

| Method     | GET                                                                                                                                                                 |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                    |
| URL        | http\://\[server]/dolphin/apiv1/graph/tasks?start=0\&count=10                                                                                                       |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                            |
| Body       |                                                                                                                                                                     |
| Status     | 200                                                                                                                                                                 |
| Response   | <p>{<br>     “status”: “success”,<br>     “data”: \[],<br>     “hasMore”: false,<br>     “nextIndex”: 0,<br>     “prevIndex”: 0,<br>     “totalResults”: 0<br>}</p> |

### **Get Task by Task Id**

| Method     | GET                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| URL        | http\://\[server]/dolphin/apiv1/graph/tasks/\[taskId]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Task Id : \[taskId]</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598951171230,<br>     “createdBy”: “\[createdBy]”,<br>     “modifiedDate”: 1598952043583,<br>     “modifiedBy”: “f1b380ced4477dd87e8d7ad842af7ae2”,<br>     “status”: “OnGoing”,<br>     “taskName”: “Mira selasa”,<br>     “taskDetail”: “Task selasa mira”,<br>     “deleted”: false,<br>     “dueDate”: 1598951100000,<br>     “reminderDate”: 1598958000000,<br>     “highPriority”: false,<br>     “responsiblePersons”: \[<br>       “\[responsiblePersons]”<br>     ],<br>     “participants”: \[<br>       “\[participants]”<br>     ],<br>     “observers”: “\[<br>       “\[observer]”<br>     ],<br>     “checklists”: \[ “{\”checklistDetail\”:\”Comment\”,\”state\”:false}”<br>     ],<br>     “comments”: \[<br>       “7e0262b5cef97058fef56a5bb1b6daac”,<br>       “d6663f027e4035ad1d64e39688195f64”,<br>       “0fa59391d3f414a022822b981ff0cc90”,<br>       “932265a29d24d27d9a08c6437744cb6c”,<br>       “362c0c43b60393430ba4200d1e194ac1”,<br>       “d1706017679c16fc5117a2d3c5b4b686”,<br>       “1ec212282fb66aa3c18d4dcac27df243”<br>     ],<br>     “startDate”: 1598951177793<br>   },<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Add Task**

| Method     | POST                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| URL        | http\://\[server]/ dolphin/apiv1/graph/tasks/add                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Body       | <p>{<br>     “taskName”: “{task\_name}”,<br>     “responsiblePersons”:<br>     \[<br>       “\[responsiblePersons]”<br>     ]<br>}</p>                                                                                                                                                                                                                                                                                                                                                                                                           |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598953966455,<br>     “createdBy”: “\[createdBy]”,<br>     “modifiedDate”: 1598953966455,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “status”: “NotStarted”,<br>     “taskName”: “Create Task”,<br>     “deleted”: false,<br>     “responsiblePersons”: \[        “\[responsiblePerson]”<br>   ]<br>},<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Edit Task**

| Method     | PUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| URL        | http\://\[server]/ dolphin/apiv1/graph/tasks/edit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Body       | <p>{<br>     “id”: “\[taskId]”,<br>     “status”: “\[statusTask]”,<br>     “taskName”: “\[taskName]”,<br>     “deleted”: false,<br>     “dueDate”: 202009021057,<br>     “highPriority”: false,<br>     “responsiblePersons”: \[<br>       “\[responsiblePersons]”<br>     ]<br>}</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>      “id”: “\[Id]”,<br>      “owner”: “\[owner\_id]”,<br>      “createdDate”: 1598951171230,<br>      “createdBy”: “b64283b4d0ee8b67086a16398a261790”,<br>      “modifiedDate”: 1598955287024,<br>      “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>      “status”: “OnGoing”,<br>      “taskName”: “Mira selasa”,<br>      “taskDetail”: “Task selasa mira”,<br>      “deleted”: false,<br>      “dueDate”: 1598951100000,<br>      “reminderDate”: 1598958000000,<br>      “highPriority”: false,<br>      “responsiblePersons”: \[<br>        “\[responsiblePerson]”<br>      ],<br>      “participants”: \[<br>        “\[participant]”<br>      ],<br>      “observers”: \[<br>        “\[observer]”<br>      ],<br>      “checklists”: \[<br>        “{\”checklistDetail\”:\”Comment\”,\”state\”:false}”<br>      ],<br>      “comments”: \[<br>        “7e0262b5cef97058fef56a5bb1b6daac”,<br>        “d6663f027e4035ad1d64e39688195f64”,<br>        “0fa59391d3f414a022822b981ff0cc90”,<br>        “932265a29d24d27d9a08c6437744cb6c”,<br>        “362c0c43b60393430ba4200d1e194ac1”,<br>        “d1706017679c16fc5117a2d3c5b4b686”,<br>        “1ec212282fb66aa3c18d4dcac27df243”<br>      ],<br>      “startDate”: 1598951177793<br>   },<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Change checklist state**

| Method     | PUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| URL        | http\://\[server]/dolphin/apiv1/graph/tasks/edit/checklist?taskId=\[taskId]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Task Id : \[taskId]</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Body       | <p>\[<br>   {<br>     “checklistDetail”: “Comment”,<br>     “state”: false<br>   }<br>]</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598951171230,<br>     “createdBy”: “b64283b4d0ee8b67086a16398a261790”,<br>     “modifiedDate”: 1598955287024,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “status”: “OnGoing”,<br>     “taskName”: “Mira selasa”,<br>     “taskDetail”: “Task selasa mira”,<br>     “deleted”: false,<br>     “dueDate”: 1598951100000,<br>     “reminderDate”: 1598958000000,<br>     “highPriority”: false,<br>     “responsiblePersons”: \[<br>       “\[responsiblePersons]”<br>     ],<br>     “participants”: \[<br>       “\[participants]”<br>     ],<br>     “observers”: \[<br>       “\[observers]”<br>     ],<br>     “checklists”: \[<br>   \&nbsp   “{\”checklistDetail\”:\”Comment\”,\”state\”:false}”<br>     ],<br>     “comments”: \[<br>       “7e0262b5cef97058fef56a5bb1b6daac”,<br>       “d6663f027e4035ad1d64e39688195f64”,<br>       “0fa59391d3f414a022822b981ff0cc90”,<br>       “932265a29d24d27d9a08c6437744cb6c”,<br>       “362c0c43b60393430ba4200d1e194ac1”,<br>       “d1706017679c16fc5117a2d3c5b4b686”,<br>       “1ec212282fb66aa3c18d4dcac27df243”<br>     ],<br>     “startDate”: 1598951177793<br>   },<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Delete Task**

| Method     | PUT                                                                                                                                                                              |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                 |
| URL        | http\://\[server]/dolphin/apiv1/graph/tasks/delete/\[taskId]                                                                                                                     |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Task Id : \[taskId]</p>                                                                                                           |
| Body       |                                                                                                                                                                                  |
| Status     | 200                                                                                                                                                                              |
| Response   | <p>{<br>     “status”: “success”,<br>     “data”: “Delete Success”,<br>     “hasMore”: false,<br>     “nextIndex”: 0,<br>     “prevIndex”: 0,<br>     “totalResults”: 0<br>}</p> |

### **Start Task**

| Method     | PUT                                                                                                                                                                            |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Media Type | application/json                                                                                                                                                               |
| URL        | http\://\[server]/dolphin/apiv1/graph/tasks/start/\[taskId]                                                                                                                    |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Task Id : \[taskId]</p>                                                                                                         |
| Body       |                                                                                                                                                                                |
| Status     | 200                                                                                                                                                                            |
| Response   | <p>{<br>     “status”: “success”,<br>     “data”: “Task Started”,<br>     “hasMore”: false,<br>     “nextIndex”: 0,<br>     “prevIndex”: 0,<br>     “totalResults”: 0<br>}</p> |

### **Finish Task**

| Method     | PUT                                                                                                                                                                           |
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                              |
| URL        | http\://\[server]/dolphin/apiv1/graph/tasks/finish/\[taskId]                                                                                                                  |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Task Id : \[taskId]</p>                                                                                                        |
| Body       |                                                                                                                                                                               |
| Status     | 200                                                                                                                                                                           |
| Response   | <p>{<br>     “status”: “success”,<br>     “data”: “Task Finish”,<br>     “hasMore”: false,<br>     “nextIndex”: 0,<br>     “prevIndex”: 0,<br>     “totalResults”: 0<br>}</p> |

### **Get Task For One Month**

| Method     | GET                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| URL        | http\://\[server]/dolphin/apiv1/graph/tasks/month?startDate={start\_date}\&endDate={end\_date}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Start Date : \[yyyyMMddHHmm]<br>End Date : \[yyyyMMddHHmm]</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Response   | <p>{<br>“status”: “success”,<br>“data”: \[<br>   {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598953756538,<br>     “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “modifiedDate”: 1598953756538,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “status”: “NotStarted”,<br>     “taskName”: “Mira selasa”,<br>     “taskDetail”: “Task selasa mira”,<br>     “deleted”: false<br>   },<br>   {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598953930823,<br>     “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “modifiedDate”: 1598953930823,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “status”: “NotStarted”,<br>     “taskName”: “Create Task”,<br>     “deleted”: false,<br>     “responsiblePersons”: \[<br>       “\[responsiblePersons]”<br>     ]<br>   },<br>   {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598953962856,<br>     “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “modifiedDate”: 1598953962856,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “status”: “NotStarted”,<br>     “taskName”: “Create Task”,<br>     “deleted”: false,<br>     “responsiblePersons”: \[<br>       “\[responsiblePersons]”<br>     ]<br>   },<br>   {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598953966455,<br>     “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “modifiedDate”: 1598953966455,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “status”: “NotStarted”,<br>     “taskName”: “Create Task”,<br>     “deleted”: false,<br>     “responsiblePersons”: \[<br>       “\[responsiblePersons]”<br>     ]<br>   }<br>],<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Get Comment by Task Id**

| Method     | GET                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| URL        | http\://\[server]/dolphin/apiv1/graph/tasks/comment/\[taskId]?start=0\&count=10                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Task Id : \[taskId]</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Body       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Response   | <p>{<br>“status”: “success”,<br>“data”: \[<br>   {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598936955162,<br>     “createdBy”: “aae88eb1ccfa27d99b655f4643e6a615”,<br>     “modifiedDate”: 1598936955162,<br>     “modifiedBy”: “aae88eb1ccfa27d99b655f4643e6a615”,<br>     “taskId”: “\[taskId]”,<br>     “comment”: “Sfjaj”,<br>     “userId”: “\[userId]”<br>   },<br>   {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598937067905,<br>     “createdBy”: “aae88eb1ccfa27d99b655f4643e6a615”,<br>     “modifiedDate”: 1598937067905,<br>     “modifiedBy”: “aae88eb1ccfa27d99b655f4643e6a615”,<br>     “taskId”: “\[taskId]”,<br>     “comment”: “vznnz”,<br>     “userId”: “\[userId]”<br>   },<br>   {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598937073575,<br>     “createdBy”: “aae88eb1ccfa27d99b655f4643e6a615”,<br>     “modifiedDate”: 1598937073575,<br>     “modifiedBy”: “aae88eb1ccfa27d99b655f4643e6a615”,<br>     “taskId”: “\[taskId]”,<br>     “comment”: “sgks”,<br>     “userId”: “\[userId]”<br>   }<br>],<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 3<br>}</p> |

### **Add Comment to Task**

| Method     | POST                                                                                                                                                                            |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                |
| URL        | http\://\[server]/dolphin/apiv1/graph/tasks/comment/add/\[taskId]                                                                                                               |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Task Id : \[taskId]</p>                                                                                                          |
| Body       | <p>{<br>   “comment”: “Hallo”<br>}</p>                                                                                                                                          |
| Status     | 200                                                                                                                                                                             |
| Response   | <p>{<br>     “status”: “success”,<br>     “data”: “Comment Added”,<br>     “hasMore”: false,<br>     “nextIndex”: 0,<br>     “prevIndex”: 0,<br>     “totalResults”: 0<br>}</p> |

### **Edit Comment**

| Method     | PUT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| URL        | http\://\[server]/dolphin/apiv1/graph/tasks/comment/edit                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Header     | Authorization : Bearer \[generatedToken]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Body       | <p>{<br>   “id”: “\[Id]”,<br>   “owner”: “\[owner\_id]”,<br>   “taskId”: “\[taskId]”,<br>   “comment”: “\[comment]”,<br>   “userId”: “\[userId]”<br>}</p>                                                                                                                                                                                                                                                                                                                                                                         |
| Status     | 200                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Response   | <p>{<br>“status”: “success”,<br>“data”: {<br>     “id”: “\[Id]”,<br>     “owner”: “\[owner\_id]”,<br>     “createdDate”: 1598956982140,<br>     “createdBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “modifiedDate”: 1598956982140,<br>     “modifiedBy”: “95bbbf64882dd7816c09996d56bbc1e2”,<br>     “partial”: true,<br>     “taskId”: “\[taskId]”,<br>     “comment”: “contoh edit komentar”,<br>     “userId”: “\[userId]”<br>},<br>“hasMore”: false,<br>“nextIndex”: 0,<br>“prevIndex”: 0,<br>“totalResults”: 0<br>}</p> |

### **Delete Comment**

| Method     | PUT                                                                                                                                                                               |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Media Type | application/json                                                                                                                                                                  |
| URL        | http\://\[server]/dolphin/apiv1/graph/tasks/comment/delete/\[commentId]?taskId=\[taskId]                                                                                          |
| Header     | <p>Authorization : Bearer \[generatedToken]<br>Comment Id : \[commentId]<br>Task Id : \[taskId]</p>                                                                               |
| Body       |                                                                                                                                                                                   |
| Status     | 200                                                                                                                                                                               |
| Response   | <p>{<br>     “status”: “success”,<br>     “data”: “Comment deleted”,<br>     “hasMore”: false,<br>     “nextIndex”: 0,<br>     “prevIndex”: 0,<br>     “totalResults”: 0<br>}</p> |
