Task

Documents của APIs dành cho phần Tasks

Get Tasks of A Study

GET https://your.host.lab/projects/:project_id/studies/:study_id/tasks

This endpoint allows you to manage tasks.

{
    "error_code": 0,
    "error_message": "OK",
    "server_time": 1637652710,
    "data": [
        {
            "id": "56dba03f-23bd-4259-a99d-fda63fec4e5b",
            "project_id": "122d7cfb-40fd-48d9-9de7-ba9309ef2e0c",
            "study_id": "beb76a95-f63b-4605-9bcb-32da6a9c3c98",
            "code": "TSK-67",
            "creator_username":"test",
            "assignee_username":"test",
            "status": "NEW",
            "created": 1637209603,
            "modified": 1637223548,
            "comment": "",
            "is_archived": false,
            "study_code": "TP1-4"
        }
    ]
}

Update Task

PUT https://your.host.vinlab/projects/:project_id/tasks/change-status

Request Body

Name
Type
Description

ids*

[]string

to_status*

string

Renew Task

PUT https://your.host.vinlab/projects/:project_id/studies/:study_id/tasks/renew-status

Request Body

Name
Type
Description

ids*

[]string

Renew Task

PUT https://your.host.vinlab/projects/:project_id/tasks/renew-status

Request Body

Name
Type
Description

ids*

[]string

Get Task

GET https://your.host.lab/projects/:project_id/studies/:study_id/tasks/:task_id/info

Path Parameters

Name
Type
Description

study_id

string

Study ID

task_id

string

Task ID

project_id

string

Project ID

Headers

Name
Type
Description

Authentication

string

Mark a Task is DOING

PUT https://your.host.lab/projects/:project_id/studies/:study_id/tasks/:task_id/mark-seen

Mark a Task is SUBMITTED

PUT https://your.host.lab/projects/:project_id/studies/:study_id/tasks/:task_id/submit

Toggle Task archived or not

PUT https://your.host.lab/projects/:project_id/studies/:study_id/tasks/:task_id/archive

Get Tasks of a Project

GET https://your.host.lab/projects/:project_id/tasks

/tasks?_offset=0&_limit=25&project_id=d4702175-0403-48e5-bbba-e98716722d4d&_role=PROJECT_OWNER

Query Parameters

Name
Type
Description

_offset

Integer

Default 0

_limit

Integer

Default 10

_sort

String

status

String

assignee

String

Delete Tasks by their IDs

DELETE https://your.host.lab/projects/:project_id/tasks

``

Request Body

Name
Type
Description

ids*

[]String

Get Tasks of a Project belong to current user

GET https://your.host.lab/projects/:project_id/my-tasks

/tasks?_offset=0&_limit=25&project_id=d4702175-0403-48e5-bbba-e98716722d4d&_role=ANNOTATOR&type=ANNOTATE

Query Parameters

Name
Type
Description

_offset

Integer

Default 0

_limit

Integer

Default 10

_sort

String

status

String

Assign Tasks from assignees

POST https://your.host.lab/projects/:project_id/tasks/assign

Query Parameters

Name
Type
Description

assignees*

[]string

strategy*

string

source_type*

string

study_indices

[]string

study_ids

[]string

Last updated