Введение

Эта документация предназначена для предоставления всей необходимой информации для работы с нашим API.

Аутентификация запросов

Чтобы аутентифицировать запросы, включите заголовок Authorization со значением "Bearer {YOUR_AUTH_KEY}".

Все аутентифицированные конечные точки отмечены значком требуется аутентификация в документации ниже.

Чтобы получить аунтификатор Вы можете сделать запрос на маршрут входа, если у Вас есть аккаунт, или зарегистрировать новый

Проекты

Получить проекты

GET
https://api.otask.ru
/api/v1/ws/{ws_slug}/panel/projects
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры запроса

status_id
string

ID метки проекта или completed, если нужно получить завершенные проекты

Example:
2
sort_field
string

Поле для сортировки

Must be one of:
  • name
  • amount
  • paid
  • end_at
  • status_id
  • author
Example:
author
sort_type
string

Тип сортировки

Must be one of:
  • desc
  • asc
Example:
asc
query
string

Значение для поиска

Example:
sit
is_regular
boolean

Показывать ли регулярные проекты

member
integer

ID участника проекта

Example:
10
client
integer

ID клиента проекта

Example:
12
page
integer

Номер страницы

Example:
7
per_page
integer

Количество элементов на странице

Example:
5

Поля ответа

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/panel/projects"
);

const params = {
    "status_id": "2",
    "sort_field": "author",
    "sort_type": "asc",
    "query": "sit",
    "is_regular": "0",
    "member": "10",
    "client": "12",
    "page": "7",
    "per_page": "5",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "projects": {
            "current_page": 1,
            "data": [
                {
                    "id": 188,
                    "name": "Мой первый проект в O!task (демо)",
                    "priority_id": 200,
                    "description": null,
                    "status_id": 100,
                    "client_id": 89,
                    "is_regular_amount": false,
                    "start_at": "2024-06-11T10:51:38.000000Z",
                    "deleted_at": null,
                    "end_at": "2024-12-30T19:00:00.000000Z",
                    "user_id": 18,
                    "slug": "b5fad061-ef75-487c-b2b5-2086581c368a",
                    "team_id": 35,
                    "completed_at": null,
                    "position": "0.000113250312499999999742671120",
                    "is_pinned": false,
                    "amount": "300000.00",
                    "paid": "274 000.00",
                    "end_at_regular": "2024-12-30T22:00:00+03:00",
                    "owner": {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "email": "example@example.example",
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "localtz_created_at": "2024-06-19T20:01:39+03:00",
                        "localtz_updated_at": "2024-06-19T20:01:39+03:00"
                    },
                    "members": [],
                    "managers": [],
                    "tags": [
                        {
                            "id": 150,
                            "name": "new",
                            "color": "#8910D9",
                            "user_id": 18,
                            "slug": "ef92869c-bf00-48fd-86c9-0af503025bf5",
                            "created_at": "2024-06-18T16:16:05.000000Z",
                            "updated_at": "2024-06-18T16:16:05.000000Z",
                            "team_id": 35,
                            "bg_color": "#F7E8FF",
                            "model_type": "App\\Models\\Project",
                            "position": "0.000113250312500000000000000000",
                            "pivot": {
                                "taggable_id": 188,
                                "tag_id": 150,
                                "taggable_type": "App\\Models\\Project"
                            }
                        }
                    ],
                    "localtz_start_at": "2024-06-11T13:51:38+03:00",
                    "localtz_deleted_at": "2024-06-19T20:01:39+03:00",
                    "localtz_end_at": "2024-12-30T22:00:00+03:00",
                    "localtz_end_at_regular": "2024-12-30T22:00:00+03:00",
                    "localtz_created_at": "2024-06-19T20:01:39+03:00",
                    "localtz_updated_at": "2024-06-19T20:01:39+03:00"
                }
            ],
            "first_page_url": "https://example.example/api/v1/ws/00819fb6-1068-4588-9631-f3c8b7063661/panel/projects?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "https://example.example/api/v1/ws/00819fb6-1068-4588-9631-f3c8b7063661/panel/projects?page=1",
            "links": [
                {
                    "url": null,
                    "label": "« Назад",
                    "active": false
                },
                {
                    "url": "https://example.example/api/v1/ws/00819fb6-1068-4588-9631-f3c8b7063661/panel/projects?page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "Вперёд »",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "https://example.example/api/v1/ws/00819fb6-1068-4588-9631-f3c8b7063661/panel/projects",
            "per_page": "20",
            "prev_page_url": null,
            "to": 1,
            "total": 1
        },
        "closedProjects": 0,
        "membersOptions": [],
        "clientsOptions": [
            {
                "id": 89,
                "first_name": "ОАО «Ромашка»",
                "full_name": "ОАО «Ромашка»",
                "income": 20000,
                "localtz_deleted_at": "2024-06-19T20:01:39+03:00",
                "localtz_created_at": "2024-06-19T20:01:39+03:00",
                "localtz_updated_at": "2024-06-19T20:01:39+03:00"
            }
        ],
        "hasGuestProjects": false,
        "hasRegularProject": false,
        "meta": {
            "current_page": 1,
            "from": 1,
            "last_page": 1,
            "per_page": 20,
            "to": 1,
            "total": 1
        }
    },
    "message": "success"
}

Получить список всех проектов #1

GET
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/all
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/all"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": [
        {
            "id": 188,
            "slug": "b5fad061-ef75-487c-b2b5-2086581c368a",
            "status_id": 100,
            "name": "Мой первый проект в O!task (демо)",
            "position": "0.000113250312499999999742671120",
            "is_pinned": false,
            "end_at_regular": null,
            "localtz_start_at": "2024-06-19T20:19:50+03:00",
            "localtz_deleted_at": "2024-06-19T20:19:50+03:00",
            "localtz_end_at": "2024-06-19T20:19:50+03:00",
            "localtz_end_at_regular": "2024-06-19T20:19:50+03:00",
            "localtz_created_at": "2024-06-19T20:19:50+03:00",
            "localtz_updated_at": "2024-06-19T20:19:50+03:00"
        }
    ],
    "message": "success"
}

Получить список всех проектов #2

GET
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/list
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/list"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "projects": [
            {
                "id": 188,
                "slug": "b5fad061-ef75-487c-b2b5-2086581c368a",
                "name": "Мой первый проект в O!task (демо)",
                "status_id": 100,
                "client_id": 89,
                "position": "0.000113250312499999999742671120",
                "is_pinned": false,
                "end_at_regular": null,
                "members": [],
                "localtz_start_at": "2024-06-19T20:19:11+03:00",
                "localtz_deleted_at": "2024-06-19T20:19:11+03:00",
                "localtz_end_at": "2024-06-19T20:19:11+03:00",
                "localtz_end_at_regular": "2024-06-19T20:19:11+03:00",
                "localtz_created_at": "2024-06-19T20:19:11+03:00",
                "localtz_updated_at": "2024-06-19T20:19:11+03:00"
            }
        ]
    },
    "message": "success"
}

Получить проекты сгруппированные по колонкам

GET
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/grouped-by-manager
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры запроса

status_id
string|integer

id метки или completed для получения завершенных проектов

Example:
1
query
string

Поиск по названию

Example:
Проект
is_regular
boolean
Example:
1
member
integer

ID участника проекта

Example:
1
client
integer

ID клиента

Example:
1
type
string
required

Тип группировки

Must be one of:
  • managers
  • tags
Example:
tags
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/grouped-by-manager"
);

const params = {
    "status_id": "1",
    "query": "Проект",
    "is_regular": "1",
    "member": "1",
    "client": "1",
    "type": "tags",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "columns": [
            {
                "id": null,
                "name": "Без меток",
                "color": "#182037",
                "has_more": false,
                "count": 0
            },
            {
                "id": 151,
                "name": "Новая метка (Edited)",
                "color": "#E4BF00",
                "user_id": 18,
                "slug": "c65478c1-3dd0-440c-b230-4193b631ab28",
                "created_at": "2024-06-19T17:17:49.000000Z",
                "updated_at": "2024-06-19T17:18:31.000000Z",
                "team_id": 35,
                "bg_color": "#FFFAE9",
                "model_type": "App\\Models\\Project",
                "position": "0.000113250312500000000000000000",
                "has_more": false,
                "count": 1
            },
            {
                "id": 150,
                "name": "new",
                "color": "#8910D9",
                "user_id": 18,
                "slug": "ef92869c-bf00-48fd-86c9-0af503025bf5",
                "created_at": "2024-06-18T16:16:05.000000Z",
                "updated_at": "2024-06-18T16:16:05.000000Z",
                "team_id": 35,
                "bg_color": "#F7E8FF",
                "model_type": "App\\Models\\Project",
                "position": "0.000113250312500000000000000000",
                "has_more": false,
                "count": 1
            }
        ],
        "projects": [
            {
                "id": 188,
                "name": "Мой первый проект в O!task (демо)",
                "priority_id": 200,
                "description": null,
                "status_id": 100,
                "client_id": 89,
                "is_regular_amount": false,
                "start_at": "2024-06-11T10:51:38.000000Z",
                "deleted_at": null,
                "end_at": "2024-12-30T19:00:00.000000Z",
                "user_id": 18,
                "slug": "b5fad061-ef75-487c-b2b5-2086581c368a",
                "team_id": 35,
                "completed_at": null,
                "position": "0.000113250312499999999742671120",
                "is_pinned": false,
                "amount": "300000.00",
                "paid": "274 000.00",
                "end_at_regular": "2024-12-30T22:00:00+03:00",
                "owner": {
                    "id": 18,
                    "first_name": null,
                    "last_name": null,
                    "email": "example@example.example",
                    "full_name": "example",
                    "full_name_short": "example",
                    "isonline": true,
                    "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                    "localtz_created_at": "2024-06-19T20:22:04+03:00",
                    "localtz_updated_at": "2024-06-19T20:22:04+03:00"
                },
                "members": [],
                "managers": [],
                "tags": [
                    {
                        "id": 150,
                        "name": "new",
                        "color": "#8910D9",
                        "user_id": 18,
                        "slug": "ef92869c-bf00-48fd-86c9-0af503025bf5",
                        "created_at": "2024-06-18T16:16:05.000000Z",
                        "updated_at": "2024-06-18T16:16:05.000000Z",
                        "team_id": 35,
                        "bg_color": "#F7E8FF",
                        "model_type": "App\\Models\\Project",
                        "position": "0.000113250312500000000000000000",
                        "pivot": {
                            "taggable_id": 188,
                            "tag_id": 150,
                            "taggable_type": "App\\Models\\Project"
                        }
                    },
                    {
                        "id": 151,
                        "name": "Новая метка (Edited)",
                        "color": "#E4BF00",
                        "user_id": 18,
                        "slug": "c65478c1-3dd0-440c-b230-4193b631ab28",
                        "created_at": "2024-06-19T17:17:49.000000Z",
                        "updated_at": "2024-06-19T17:18:31.000000Z",
                        "team_id": 35,
                        "bg_color": "#FFFAE9",
                        "model_type": "App\\Models\\Project",
                        "position": "0.000113250312500000000000000000",
                        "pivot": {
                            "taggable_id": 188,
                            "tag_id": 151,
                            "taggable_type": "App\\Models\\Project"
                        }
                    }
                ],
                "localtz_start_at": "2024-06-11T13:51:38+03:00",
                "localtz_deleted_at": "2024-06-19T20:22:04+03:00",
                "localtz_end_at": "2024-12-30T22:00:00+03:00",
                "localtz_end_at_regular": "2024-12-30T22:00:00+03:00",
                "localtz_created_at": "2024-06-19T20:22:04+03:00",
                "localtz_updated_at": "2024-06-19T20:22:04+03:00"
            }
        ],
        "options": {
            "members": [],
            "clients": [
                {
                    "id": 89,
                    "first_name": "ОАО «Ромашка»",
                    "full_name": "ОАО «Ромашка»",
                    "income": 20000,
                    "localtz_deleted_at": "2024-06-19T20:22:04+03:00",
                    "localtz_created_at": "2024-06-19T20:22:04+03:00",
                    "localtz_updated_at": "2024-06-19T20:22:04+03:00"
                }
            ]
        },
        "has_regular_project": false
    },
    "message": "success"
}

Получить проекты для колонки

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/grouped-by-manager/load-more
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/grouped-by-manager/load-more"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status_id": 1,
    "query": "Проект",
    "is_regular": 1,
    "member": 1,
    "client": 1,
    "type": "managers",
    "exclude_project_ids": [
        1,
        2,
        3
    ],
    "column_id": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "projects": [
            {
                "id": 188,
                "name": "Мой первый проект в O!task (демо)",
                "priority_id": 200,
                "description": null,
                "status_id": 100,
                "client_id": 89,
                "is_regular_amount": false,
                "start_at": "2024-06-11T10:51:38.000000Z",
                "deleted_at": null,
                "end_at": "2024-12-30T19:00:00.000000Z",
                "user_id": 18,
                "slug": "b5fad061-ef75-487c-b2b5-2086581c368a",
                "team_id": 35,
                "completed_at": null,
                "position": "-0.999886749687500020478125861700",
                "is_pinned": false,
                "amount": "300000.00",
                "paid": "274 000.00",
                "end_at_regular": "2024-12-30T22:00:00+03:00",
                "owner": {
                    "id": 18,
                    "first_name": null,
                    "last_name": null,
                    "middle_name": null,
                    "email": "example@example.example",
                    "sex": null,
                    "created_at": "2024-06-11T10:51:38.000000Z",
                    "last_activity": "2024-06-19T17:23:40.000000Z",
                    "currency_id": 1,
                    "position": null,
                    "full_name": "example",
                    "full_name_short": "example",
                    "isonline": true,
                    "avatar": "http://api.otask.gq/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                    "localtz_created_at": "2024-06-11T13:51:38+03:00",
                    "localtz_updated_at": "2024-06-19T20:23:40+03:00"
                },
                "members": [],
                "managers": [],
                "tags": [
                    {
                        "id": 150,
                        "name": "new",
                        "color": "#8910D9",
                        "user_id": 18,
                        "slug": "ef92869c-bf00-48fd-86c9-0af503025bf5",
                        "created_at": "2024-06-18T16:16:05.000000Z",
                        "updated_at": "2024-06-18T16:16:05.000000Z",
                        "team_id": 35,
                        "bg_color": "#F7E8FF",
                        "model_type": "App\\Models\\Project",
                        "position": "0.000113250312500000000000000000",
                        "pivot": {
                            "taggable_id": 188,
                            "tag_id": 150,
                            "taggable_type": "App\\Models\\Project"
                        }
                    }
                ],
                "localtz_start_at": "2024-06-11T13:51:38+03:00",
                "localtz_deleted_at": "2024-06-19T20:23:40+03:00",
                "localtz_end_at": "2024-12-30T22:00:00+03:00",
                "localtz_end_at_regular": "2024-12-30T22:00:00+03:00",
                "localtz_created_at": "2024-06-19T20:23:40+03:00",
                "localtz_updated_at": "2024-06-19T20:23:40+03:00"
            }
        ],
        "has_more": false
    },
    "message": "success"
}

Создать проект

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/create
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/create"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Проект",
    "amount": 50000.5,
    "end_at": "19.06.2024",
    "client_id": 1,
    "is_regular_amount": true,
    "status_id": 300,
    "tags": [
        1,
        2,
        3
    ],
    "members": [
        1,
        2,
        3
    ],
    "managers": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "name": "Новый проект",
        "amount": null,
        "is_regular_amount": false,
        "start_at": "2024-06-19T17:24:49.000000Z",
        "end_at": null,
        "client_id": null,
        "user_id": 18,
        "status_id": 100,
        "position": "-1.999886749687500131500428324216",
        "completed_at": null,
        "team_id": 35,
        "slug": "a15a3efc-de69-4598-9081-f15c66013616",
        "updated_at": "2024-06-19T17:24:49.000000Z",
        "created_at": "2024-06-19T17:24:49.000000Z",
        "id": 198,
        "paid": "0.00",
        "priority_id": 200,
        "end_at_regular": null,
        "managers": [],
        "members": [],
        "owner": {
            "id": 18,
            "first_name": null,
            "last_name": null,
            "middle_name": null,
            "email": "example@example.example",
            "sex": null,
            "created_at": "2024-06-11T10:51:38.000000Z",
            "last_activity": "2024-06-19T17:24:49.000000Z",
            "currency_id": 1,
            "position": null,
            "full_name": "example",
            "full_name_short": "example",
            "isonline": true,
            "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
            "localtz_created_at": "2024-06-11T13:51:38+03:00",
            "localtz_updated_at": "2024-06-19T20:24:49+03:00"
        },
        "tags": [],
        "localtz_start_at": "2024-06-19T20:24:49+03:00",
        "localtz_deleted_at": "2024-06-19T20:24:49+03:00",
        "localtz_end_at": "2024-06-19T20:24:49+03:00",
        "localtz_end_at_regular": "2024-06-19T20:24:49+03:00",
        "localtz_created_at": "2024-06-19T20:24:49+03:00",
        "localtz_updated_at": "2024-06-19T20:24:49+03:00"
    },
    "message": "success"
}

Экспорт проектов

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/export
Требуется аутентификация
Возвращает .csv файл

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры запроса

status_id
string|integer

id метки или completed для получения завершенных проектов

Example:
1
query
string

Поиск по названию

Example:
Проект
is_regular
boolean
Example:
1
member
integer

ID участника проекта

Example:
1
client
integer

ID клиента

Example:
1
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/export"
);

const params = {
    "status_id": "1",
    "query": "Проект",
    "is_regular": "1",
    "member": "1",
    "client": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
Пример ответа:
OK

Скачать пример файла для импорта проектов

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/example-import
Требуется аутентификация
Возвращает .csv файл

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/example-import"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
Пример ответа:
OK

Импорт проектов

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/import
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/import"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('file', document.querySelector('input[name="file"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());
Пример ответа:
storage/app/api_docs/empty.json

Обновить проект

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/update
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/update"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Проект",
    "amount": 50000.5,
    "end_at": "19.06.2024",
    "client_id": 1,
    "is_regular_amount": true,
    "status_id": 100,
    "tags": [
        1,
        2,
        3
    ],
    "members": [
        1,
        2,
        3
    ],
    "managers": [
        1
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "id": 198,
        "name": "Новый проект",
        "priority_id": 200,
        "description": null,
        "amount": null,
        "is_regular_amount": false,
        "start_at": "2024-06-19T17:24:49.000000Z",
        "end_at": null,
        "status_id": 100,
        "user_id": 18,
        "client_id": null,
        "slug": "a15a3efc-de69-4598-9081-f15c66013616",
        "deleted_at": null,
        "created_at": "2024-06-19T17:24:49.000000Z",
        "updated_at": "2024-06-19T17:24:49.000000Z",
        "team_id": 35,
        "completed_at": null,
        "position": "-1.999886749687499909455823399185",
        "is_pinned": false,
        "end_at_regular": null,
        "managers": [],
        "localtz_start_at": "2024-06-19T20:24:49+03:00",
        "localtz_deleted_at": "2024-06-19T20:26:59+03:00",
        "localtz_end_at": "2024-06-19T20:26:59+03:00",
        "localtz_end_at_regular": "2024-06-19T20:26:59+03:00",
        "localtz_created_at": "2024-06-19T20:24:49+03:00",
        "localtz_updated_at": "2024-06-19T20:24:49+03:00",
        "budget": null
    },
    "message": "success"
}

Изменить позицию проекта

PUT
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/change-position
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/change-position"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "up": 1,
    "down": 2
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": null,
    "message": "success"
}

Закрепить/открепить проект

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/update-pinned
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/update-pinned"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": null,
    "message": "success"
}

Изменить описание проекта

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/update-description
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/update-description"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "description": "Описание проекта"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": null,
    "message": "success"
}

Прикрепить/открепить метку проекта

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/update-tags
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/update-tags"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "detach",
    "tag_id": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": null,
    "message": "success"
}

Переместить проект в колонку

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/move-kanban
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/move-kanban"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "tags",
    "managers": [
        1
    ],
    "tags": [
        1,
        2,
        3
    ],
    "up": 1,
    "down": 2
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "id": 198,
        "name": "Новый проект",
        "priority_id": 200,
        "description": null,
        "amount": null,
        "is_regular_amount": false,
        "start_at": "2024-06-19T17:24:49.000000Z",
        "end_at": null,
        "status_id": 100,
        "user_id": 18,
        "client_id": null,
        "slug": "a15a3efc-de69-4598-9081-f15c66013616",
        "deleted_at": null,
        "created_at": "2024-06-19T17:24:49.000000Z",
        "updated_at": "2024-06-19T17:28:21.000000Z",
        "team_id": 35,
        "completed_at": null,
        "position": "-0.99988674968750002047812586170039139688",
        "is_pinned": false,
        "end_at_regular": null,
        "owner": {
            "id": 18,
            "first_name": null,
            "last_name": null,
            "middle_name": null,
            "email": "example@example.example",
            "sex": null,
            "created_at": "2024-06-11T10:51:38.000000Z",
            "last_activity": "2024-06-19T17:28:21.000000Z",
            "currency_id": 1,
            "position": null,
            "full_name": "example",
            "full_name_short": "example",
            "isonline": true,
            "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
            "localtz_created_at": "2024-06-11T13:51:38+03:00",
            "localtz_updated_at": "2024-06-19T20:28:21+03:00"
        },
        "members": [],
        "managers": [],
        "tags": [
            {
                "id": 150,
                "name": "new",
                "color": "#8910D9",
                "user_id": 18,
                "slug": "ef92869c-bf00-48fd-86c9-0af503025bf5",
                "created_at": "2024-06-18T16:16:05.000000Z",
                "updated_at": "2024-06-18T16:16:05.000000Z",
                "team_id": 35,
                "bg_color": "#F7E8FF",
                "model_type": "App\\Models\\Project",
                "position": "0.000113250312500000000000000000",
                "pivot": {
                    "taggable_id": 198,
                    "tag_id": 150,
                    "taggable_type": "App\\Models\\Project"
                }
            }
        ],
        "localtz_start_at": "2024-06-19T20:24:49+03:00",
        "localtz_deleted_at": "2024-06-19T20:28:21+03:00",
        "localtz_end_at": "2024-06-19T20:28:21+03:00",
        "localtz_end_at_regular": "2024-06-19T20:28:21+03:00",
        "localtz_created_at": "2024-06-19T20:24:49+03:00",
        "localtz_updated_at": "2024-06-19T20:28:21+03:00"
    },
    "message": "success"
}

Удалить проект

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/destroy
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/destroy"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": null,
    "message": "success"
}

Завершить/восстановить проект

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/close
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/close"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "id": 198,
        "name": "Новый проект",
        "priority_id": 200,
        "description": null,
        "amount": null,
        "is_regular_amount": false,
        "start_at": "2024-06-19T17:24:49.000000Z",
        "end_at": null,
        "status_id": 300,
        "user_id": 18,
        "client_id": null,
        "slug": "a15a3efc-de69-4598-9081-f15c66013616",
        "deleted_at": null,
        "created_at": "2024-06-19T17:24:49.000000Z",
        "updated_at": "2024-06-19T17:29:17.000000Z",
        "team_id": 35,
        "completed_at": "2024-06-19T17:29:17.000000Z",
        "position": "-1.999886749687500131500428324216",
        "is_pinned": false,
        "end_at_regular": null,
        "localtz_start_at": "2024-06-19T20:24:49+03:00",
        "localtz_deleted_at": "2024-06-19T20:29:17+03:00",
        "localtz_end_at": "2024-06-19T20:29:17+03:00",
        "localtz_end_at_regular": "2024-06-19T20:29:17+03:00",
        "localtz_created_at": "2024-06-19T20:24:49+03:00",
        "localtz_updated_at": "2024-06-19T20:29:17+03:00"
    },
    "message": "success"
}

Получить проект

GET
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/summary
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/summary"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "tasks": {
            "data": [
                {
                    "id": 569,
                    "name": "Моя первая задача в O!task",
                    "priority_id": 3,
                    "description": "В этом поле вы можете добавлять описание задачам",
                    "end_at": "2024-06-12T10:51:38.000000Z",
                    "status_id": 100,
                    "kanban_status_id": 100,
                    "project_id": 188,
                    "slug": "da86a512-e3c6-4e75-9c82-50fa7cbd83a0",
                    "deleted_at": null,
                    "created_at": "2024-06-11T10:51:38.000000Z",
                    "updated_at": "2024-06-19T15:59:20.000000Z",
                    "creator_id": 18,
                    "team_id": 35,
                    "board_id": 175,
                    "board_column_id": 851,
                    "position": "1.000113250312500000000000000000",
                    "type": "new",
                    "comments_count": 2,
                    "num_comments": 2,
                    "picture": null,
                    "performers": [
                        {
                            "id": 18,
                            "first_name": null,
                            "last_name": null,
                            "middle_name": null,
                            "email": "example@example.example",
                            "sex": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "last_activity": "2024-06-19T17:29:51.000000Z",
                            "currency_id": 1,
                            "position": null,
                            "full_name": "example",
                            "full_name_short": "example",
                            "isonline": true,
                            "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                            "pivot": {
                                "task_id": 569,
                                "user_id": 18
                            },
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-19T20:29:51+03:00"
                        }
                    ],
                    "media": [
                        {
                            "id": 454,
                            "name": "124",
                            "parent_id": 418,
                            "type": "original",
                            "ordering": null,
                            "model_type": "App\\Models\\Task",
                            "model_id": 569,
                            "extension": "pdf",
                            "user_id": 18,
                            "collection": null,
                            "tag": null,
                            "thumbnails": [],
                            "width": null,
                            "height": null,
                            "src": "2f6d52bb-e155-46ee-b822-ef2a70c67bbf.pdf",
                            "mimes": "application/pdf",
                            "disk": "yandexcloud",
                            "size": 878135,
                            "folder": "/uploads/filemanagers/0b83697c-528b-492a-a776-f33079e17ea9/my-projects-18/b5fad061-ef75-487c-b2b5-2086581c368a/tasks/da86a512-e3c6-4e75-9c82-50fa7cbd83a0/",
                            "storage": "local",
                            "storage_data": null,
                            "slug": "5361362f-b760-4b39-af2b-835b89f9c359",
                            "created_at": "2024-06-19T15:59:21.000000Z",
                            "updated_at": "2024-06-19T15:59:21.000000Z",
                            "webp": null,
                            "size_human": {
                                "B": {
                                    "count": "878135",
                                    "text": {
                                        "ru": {
                                            "short": "Б",
                                            "long": "Байт"
                                        },
                                        "en": {
                                            "short": "B",
                                            "long": "Bytes"
                                        }
                                    }
                                },
                                "KB": {
                                    "count": "857,55",
                                    "text": {
                                        "ru": {
                                            "short": "KB",
                                            "long": "Килобайт"
                                        },
                                        "en": {
                                            "short": "KB",
                                            "long": "Kilobytes"
                                        }
                                    }
                                },
                                "MB": {
                                    "count": "0,84",
                                    "text": {
                                        "ru": {
                                            "short": "МБ",
                                            "long": "Мегабайт"
                                        },
                                        "en": {
                                            "short": "MB",
                                            "long": "Megabytes"
                                        }
                                    }
                                },
                                "GB": {
                                    "count": "0,00",
                                    "text": {
                                        "ru": {
                                            "short": "ГБ",
                                            "long": "Гигабайт"
                                        },
                                        "en": {
                                            "short": "GB",
                                            "long": "Gigabytes"
                                        }
                                    }
                                },
                                "TB": {
                                    "count": "0,00",
                                    "text": {
                                        "ru": {
                                            "short": "ТБ",
                                            "long": "Терабай"
                                        },
                                        "en": {
                                            "short": "TB",
                                            "long": "terabytes"
                                        }
                                    }
                                },
                                "human": {
                                    "count": "857,55",
                                    "text": {
                                        "ru": {
                                            "short": "KB",
                                            "long": "Килобайт"
                                        },
                                        "en": {
                                            "short": "KB",
                                            "long": "Kilobytes"
                                        }
                                    }
                                }
                            },
                            "author": "example",
                            "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                            "previewImage": null,
                            "localtz_created_at": "2024-06-19T18:59:21+03:00",
                            "localtz_updated_at": "2024-06-19T18:59:21+03:00"
                        }
                    ],
                    "comments": [
                        {
                            "id": 47,
                            "taggable_type": "App\\Models\\Task",
                            "taggable_id": 569,
                            "parent_id": null,
                            "user_id": 18,
                            "comment": "Первый комментарий",
                            "slug": "79bd2e41-6af2-4dc3-a651-51d45acfa4b9",
                            "deleted_at": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "updated_at": "2024-06-11T10:51:38.000000Z",
                            "editable": false,
                            "commentHtml": "Первый комментарий",
                            "user": {
                                "id": 18,
                                "first_name": null,
                                "last_name": null,
                                "middle_name": null,
                                "email": "example@example.example",
                                "sex": null,
                                "created_at": "2024-06-11T10:51:38.000000Z",
                                "last_activity": "2024-06-19T17:29:51.000000Z",
                                "currency_id": 1,
                                "position": null,
                                "full_name": "example",
                                "full_name_short": "example",
                                "isonline": true,
                                "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                                "localtz_created_at": "2024-06-11T13:51:38+03:00",
                                "localtz_updated_at": "2024-06-19T20:29:51+03:00"
                            },
                            "localtz_deleted_at": "2024-06-19T20:29:51+03:00",
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                        },
                        {
                            "id": 48,
                            "taggable_type": "App\\Models\\Task",
                            "taggable_id": 569,
                            "parent_id": null,
                            "user_id": 18,
                            "comment": "Второй комментарий",
                            "slug": "fa32302b-bb74-41d9-841a-07910791ef70",
                            "deleted_at": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "updated_at": "2024-06-11T10:51:38.000000Z",
                            "editable": false,
                            "commentHtml": "Второй комментарий",
                            "user": {
                                "id": 18,
                                "first_name": null,
                                "last_name": null,
                                "middle_name": null,
                                "email": "example@example.example",
                                "sex": null,
                                "created_at": "2024-06-11T10:51:38.000000Z",
                                "last_activity": "2024-06-19T17:29:51.000000Z",
                                "currency_id": 1,
                                "position": null,
                                "full_name": "example",
                                "full_name_short": "example",
                                "isonline": true,
                                "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                                "localtz_created_at": "2024-06-11T13:51:38+03:00",
                                "localtz_updated_at": "2024-06-19T20:29:51+03:00"
                            },
                            "localtz_deleted_at": "2024-06-19T20:29:51+03:00",
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                        }
                    ],
                    "tags": [
                        {
                            "id": 149,
                            "name": "Первая метка",
                            "color": "#E4BF00",
                            "user_id": 18,
                            "slug": "8e70e86d-c96c-4ef1-91c0-2ee021936b60",
                            "created_at": "2024-06-17T11:34:43.000000Z",
                            "updated_at": "2024-06-17T11:34:43.000000Z",
                            "team_id": 35,
                            "bg_color": "#FFFAE9",
                            "model_type": "App\\Models\\Task",
                            "position": "0.000113250312500000000000000000",
                            "pivot": {
                                "taggable_id": 569,
                                "tag_id": 149,
                                "taggable_type": "App\\Models\\Task"
                            }
                        }
                    ],
                    "timer": null,
                    "subtasks": [
                        {
                            "id": 570,
                            "name": "Выполненная подзадача",
                            "priority_id": 0,
                            "description": null,
                            "end_at": null,
                            "status_id": 100,
                            "kanban_status_id": 100,
                            "project_id": 188,
                            "slug": "4cd6fa71-af1b-485d-8df9-8c846c68c112",
                            "deleted_at": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "updated_at": "2024-06-11T10:51:38.000000Z",
                            "creator_id": 18,
                            "team_id": 35,
                            "board_id": 175,
                            "board_column_id": 854,
                            "position": "2.000113250312500000000000000000",
                            "picture": null,
                            "pivot": {
                                "task_id": 569,
                                "subtask_id": 570
                            },
                            "performers": [],
                            "localtz_end_at": "2024-06-19T20:29:51+03:00",
                            "localtz_deleted_at": "2024-06-19T20:29:51+03:00",
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                        },
                        {
                            "id": 571,
                            "name": "Вторая выполненная подзадача",
                            "priority_id": 0,
                            "description": null,
                            "end_at": null,
                            "status_id": 100,
                            "kanban_status_id": 100,
                            "project_id": 188,
                            "slug": "a2ca118f-3e0f-4fb8-95d1-fe6dfd3beff9",
                            "deleted_at": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "updated_at": "2024-06-11T10:51:38.000000Z",
                            "creator_id": 18,
                            "team_id": 35,
                            "board_id": 175,
                            "board_column_id": 854,
                            "position": "3.000113250312500000000000000000",
                            "picture": null,
                            "pivot": {
                                "task_id": 569,
                                "subtask_id": 571
                            },
                            "performers": [],
                            "localtz_end_at": "2024-06-19T20:29:51+03:00",
                            "localtz_deleted_at": "2024-06-19T20:29:51+03:00",
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                        },
                        {
                            "id": 572,
                            "name": "Подзадача",
                            "priority_id": 0,
                            "description": null,
                            "end_at": "2024-06-12T10:51:38.000000Z",
                            "status_id": 100,
                            "kanban_status_id": 100,
                            "project_id": 188,
                            "slug": "e5994fcd-2757-4b27-b94a-0dcf68ffd91a",
                            "deleted_at": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "updated_at": "2024-06-11T10:51:38.000000Z",
                            "creator_id": 18,
                            "team_id": 35,
                            "board_id": 175,
                            "board_column_id": 851,
                            "position": "4.000113250312500000000000000000",
                            "picture": null,
                            "pivot": {
                                "task_id": 569,
                                "subtask_id": 572
                            },
                            "performers": [],
                            "localtz_end_at": "2024-06-12T13:51:38+03:00",
                            "localtz_deleted_at": "2024-06-19T20:29:51+03:00",
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                        }
                    ],
                    "recurring": {
                        "id": 58,
                        "task_id": 569,
                        "type": "every-month",
                        "time": "15:51:00",
                        "skip_weekends": true,
                        "value": "10",
                        "next_replay": "2024-07-10 13:51:00",
                        "replayed_at": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "timezone": "Europe/Moscow"
                    },
                    "reminder": {
                        "id": 32,
                        "date": "2024-07-11 15:51:38",
                        "task_id": 569,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z"
                    },
                    "custom_fields": [
                        {
                            "id": 74,
                            "team_id": 35,
                            "name": "Название поля",
                            "type": "text",
                            "show_in_cards": true,
                            "always_show_in_task": false,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "updated_at": "2024-06-11T10:51:38.000000Z",
                            "order": 1,
                            "pivot": {
                                "task_id": 569,
                                "field_id": 74,
                                "value": "значение"
                            }
                        },
                        {
                            "id": 75,
                            "team_id": 35,
                            "name": "Предоплата",
                            "type": "money",
                            "show_in_cards": true,
                            "always_show_in_task": false,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "updated_at": "2024-06-17T15:41:10.000000Z",
                            "order": 3,
                            "pivot": {
                                "task_id": 569,
                                "field_id": 75,
                                "value": "20000"
                            }
                        },
                        {
                            "id": 77,
                            "team_id": 35,
                            "name": "Оплачено",
                            "type": "boolean",
                            "show_in_cards": true,
                            "always_show_in_task": false,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "updated_at": "2024-06-17T15:41:10.000000Z",
                            "order": 2,
                            "pivot": {
                                "task_id": 569,
                                "field_id": 77,
                                "value": true
                            }
                        }
                    ],
                    "creator": {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:29:51.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:29:51+03:00"
                    },
                    "localtz_end_at": "2024-06-12T13:51:38+03:00",
                    "localtz_deleted_at": "2024-06-19T20:29:51+03:00",
                    "localtz_created_at": "2024-06-11T13:51:38+03:00",
                    "localtz_updated_at": "2024-06-19T18:59:20+03:00"
                },
                {
                    "id": 573,
                    "name": "Задача с критическим приоритетом",
                    "priority_id": 1,
                    "description": "Задачи с критическим приоритетом всегда будут подниматься на первые места в столбце",
                    "end_at": "2024-06-12T10:51:40.000000Z",
                    "status_id": 100,
                    "kanban_status_id": 100,
                    "project_id": 188,
                    "slug": "ccaf01e1-1f6c-41f4-acec-64deca223af1",
                    "deleted_at": null,
                    "created_at": "2024-06-11T10:51:40.000000Z",
                    "updated_at": "2024-06-17T10:21:12.000000Z",
                    "creator_id": 18,
                    "team_id": 35,
                    "board_id": 175,
                    "board_column_id": 851,
                    "position": "1.500113250312499868499571675784",
                    "type": "new",
                    "comments_count": 0,
                    "num_comments": 0,
                    "picture": "https://example.example/storage/uploads/tasks/6011a460-e90b-4830-bfa8-9307fa3c4df4.jpeg",
                    "performers": [
                        {
                            "id": 18,
                            "first_name": null,
                            "last_name": null,
                            "middle_name": null,
                            "email": "example@example.example",
                            "sex": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "last_activity": "2024-06-19T17:29:51.000000Z",
                            "currency_id": 1,
                            "position": null,
                            "full_name": "example",
                            "full_name_short": "example",
                            "isonline": true,
                            "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                            "pivot": {
                                "task_id": 573,
                                "user_id": 18
                            },
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-19T20:29:51+03:00"
                        }
                    ],
                    "media": [],
                    "comments": [],
                    "tags": [],
                    "timer": null,
                    "subtasks": [],
                    "recurring": null,
                    "reminder": null,
                    "custom_fields": [],
                    "creator": {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:29:51.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:29:51+03:00"
                    },
                    "localtz_end_at": "2024-06-12T13:51:40+03:00",
                    "localtz_deleted_at": "2024-06-19T20:29:51+03:00",
                    "localtz_created_at": "2024-06-11T13:51:40+03:00",
                    "localtz_updated_at": "2024-06-17T13:21:12+03:00"
                },
                {
                    "id": 574,
                    "name": "Задача без приоритета",
                    "priority_id": 0,
                    "description": "Обычная задача без приоритета",
                    "end_at": "2024-06-12T10:51:40.000000Z",
                    "status_id": 100,
                    "kanban_status_id": 100,
                    "project_id": 188,
                    "slug": "fe7b65d2-a679-48d5-a88f-a770a722357e",
                    "deleted_at": null,
                    "created_at": "2024-06-11T10:51:40.000000Z",
                    "updated_at": "2024-06-11T10:51:40.000000Z",
                    "creator_id": 18,
                    "team_id": 35,
                    "board_id": 175,
                    "board_column_id": 853,
                    "position": "5.000113250312500000000000000000",
                    "type": null,
                    "comments_count": 0,
                    "num_comments": 0,
                    "picture": null,
                    "performers": [
                        {
                            "id": 18,
                            "first_name": null,
                            "last_name": null,
                            "middle_name": null,
                            "email": "example@example.example",
                            "sex": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "last_activity": "2024-06-19T17:29:51.000000Z",
                            "currency_id": 1,
                            "position": null,
                            "full_name": "example",
                            "full_name_short": "example",
                            "isonline": true,
                            "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                            "pivot": {
                                "task_id": 574,
                                "user_id": 18
                            },
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-19T20:29:51+03:00"
                        }
                    ],
                    "media": [],
                    "comments": [],
                    "tags": [],
                    "timer": null,
                    "subtasks": [],
                    "recurring": null,
                    "reminder": null,
                    "custom_fields": [],
                    "creator": {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:29:51.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:29:51+03:00"
                    },
                    "localtz_end_at": "2024-06-12T13:51:40+03:00",
                    "localtz_deleted_at": "2024-06-19T20:29:51+03:00",
                    "localtz_created_at": "2024-06-11T13:51:40+03:00",
                    "localtz_updated_at": "2024-06-11T13:51:40+03:00"
                },
                {
                    "id": 575,
                    "name": "А так выглядит завершенная задача",
                    "priority_id": 0,
                    "description": "Задача прошла весь цикл и теперь завершена",
                    "end_at": "2024-06-12T10:51:40.000000Z",
                    "status_id": 100,
                    "kanban_status_id": 100,
                    "project_id": 188,
                    "slug": "511c514e-7bd4-4620-b01c-8877fb7d76e5",
                    "deleted_at": null,
                    "created_at": "2024-06-11T10:51:40.000000Z",
                    "updated_at": "2024-06-11T10:51:40.000000Z",
                    "creator_id": 18,
                    "team_id": 35,
                    "board_id": 175,
                    "board_column_id": 854,
                    "position": "6.000113250312500000000000000000",
                    "type": "completed",
                    "comments_count": 0,
                    "num_comments": 0,
                    "picture": null,
                    "performers": [
                        {
                            "id": 18,
                            "first_name": null,
                            "last_name": null,
                            "middle_name": null,
                            "email": "example@example.example",
                            "sex": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "last_activity": "2024-06-19T17:29:51.000000Z",
                            "currency_id": 1,
                            "position": null,
                            "full_name": "example",
                            "full_name_short": "example",
                            "isonline": true,
                            "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                            "pivot": {
                                "task_id": 575,
                                "user_id": 18
                            },
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-19T20:29:51+03:00"
                        }
                    ],
                    "media": [],
                    "comments": [],
                    "tags": [],
                    "timer": null,
                    "subtasks": [],
                    "recurring": null,
                    "reminder": null,
                    "custom_fields": [],
                    "creator": {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:29:51.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:29:51+03:00"
                    },
                    "localtz_end_at": "2024-06-12T13:51:40+03:00",
                    "localtz_deleted_at": "2024-06-19T20:29:51+03:00",
                    "localtz_created_at": "2024-06-11T13:51:40+03:00",
                    "localtz_updated_at": "2024-06-11T13:51:40+03:00"
                }
            ],
            "meta": {
                "current_page": 1,
                "from": 1,
                "last_page": 1,
                "per_page": 10,
                "to": 4,
                "total": 4
            }
        },
        "files": [
            {
                "id": 454,
                "name": "124",
                "parent_id": 418,
                "type": "original",
                "ordering": null,
                "model_type": "App\\Models\\Task",
                "model_id": 569,
                "extension": "pdf",
                "user_id": 18,
                "collection": null,
                "tag": null,
                "thumbnails": [],
                "width": null,
                "height": null,
                "src": "2f6d52bb-e155-46ee-b822-ef2a70c67bbf.pdf",
                "mimes": "application/pdf",
                "disk": "yandexcloud",
                "size": 878135,
                "folder": "/uploads/filemanagers/0b83697c-528b-492a-a776-f33079e17ea9/my-projects-18/b5fad061-ef75-487c-b2b5-2086581c368a/tasks/da86a512-e3c6-4e75-9c82-50fa7cbd83a0/",
                "storage": "local",
                "storage_data": null,
                "slug": "5361362f-b760-4b39-af2b-835b89f9c359",
                "created_at": "2024-06-19T15:59:21.000000Z",
                "updated_at": "2024-06-19T15:59:21.000000Z",
                "webp": null,
                "size_human": {
                    "B": {
                        "count": "878135",
                        "text": {
                            "ru": {
                                "short": "Б",
                                "long": "Байт"
                            },
                            "en": {
                                "short": "B",
                                "long": "Bytes"
                            }
                        }
                    },
                    "KB": {
                        "count": "857,55",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    },
                    "MB": {
                        "count": "0,84",
                        "text": {
                            "ru": {
                                "short": "МБ",
                                "long": "Мегабайт"
                            },
                            "en": {
                                "short": "MB",
                                "long": "Megabytes"
                            }
                        }
                    },
                    "GB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ГБ",
                                "long": "Гигабайт"
                            },
                            "en": {
                                "short": "GB",
                                "long": "Gigabytes"
                            }
                        }
                    },
                    "TB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ТБ",
                                "long": "Терабай"
                            },
                            "en": {
                                "short": "TB",
                                "long": "terabytes"
                            }
                        }
                    },
                    "human": {
                        "count": "857,55",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    }
                },
                "author": "example",
                "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                "previewImage": null,
                "localtz_created_at": "2024-06-19T18:59:21+03:00",
                "localtz_updated_at": "2024-06-19T18:59:21+03:00"
            },
            {
                "id": 452,
                "name": "124",
                "parent_id": 418,
                "type": "original",
                "ordering": null,
                "model_type": "App\\Models\\Task",
                "model_id": 592,
                "extension": "pdf",
                "user_id": 18,
                "collection": null,
                "tag": null,
                "thumbnails": [],
                "width": null,
                "height": null,
                "src": "6f46f1f6-a55d-40b2-a572-6162b1666714.pdf",
                "mimes": "application/pdf",
                "disk": "yandexcloud",
                "size": 878135,
                "folder": "/uploads/filemanagers/0b83697c-528b-492a-a776-f33079e17ea9/my-projects-18/b5fad061-ef75-487c-b2b5-2086581c368a/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/",
                "storage": "local",
                "storage_data": null,
                "slug": "5832ed3d-5792-4d55-aa70-e3dc31448609",
                "created_at": "2024-06-17T17:29:21.000000Z",
                "updated_at": "2024-06-17T17:29:21.000000Z",
                "webp": null,
                "size_human": {
                    "B": {
                        "count": "878135",
                        "text": {
                            "ru": {
                                "short": "Б",
                                "long": "Байт"
                            },
                            "en": {
                                "short": "B",
                                "long": "Bytes"
                            }
                        }
                    },
                    "KB": {
                        "count": "857,55",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    },
                    "MB": {
                        "count": "0,84",
                        "text": {
                            "ru": {
                                "short": "МБ",
                                "long": "Мегабайт"
                            },
                            "en": {
                                "short": "MB",
                                "long": "Megabytes"
                            }
                        }
                    },
                    "GB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ГБ",
                                "long": "Гигабайт"
                            },
                            "en": {
                                "short": "GB",
                                "long": "Gigabytes"
                            }
                        }
                    },
                    "TB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ТБ",
                                "long": "Терабай"
                            },
                            "en": {
                                "short": "TB",
                                "long": "terabytes"
                            }
                        }
                    },
                    "human": {
                        "count": "857,55",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    }
                },
                "author": "example",
                "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                "previewImage": null,
                "localtz_created_at": "2024-06-17T20:29:21+03:00",
                "localtz_updated_at": "2024-06-17T20:29:21+03:00"
            },
            {
                "id": 451,
                "name": "124",
                "parent_id": 418,
                "type": "original",
                "ordering": null,
                "model_type": "App\\Models\\Task",
                "model_id": 589,
                "extension": "pdf",
                "user_id": 18,
                "collection": null,
                "tag": null,
                "thumbnails": [],
                "width": null,
                "height": null,
                "src": "ddf96c6a-6d76-4cf6-b141-3ed25f3ec1e5.pdf",
                "mimes": "application/pdf",
                "disk": "yandexcloud",
                "size": 878135,
                "folder": "/uploads/filemanagers/0b83697c-528b-492a-a776-f33079e17ea9/my-projects-18/b5fad061-ef75-487c-b2b5-2086581c368a/tasks/35625069-08a2-45b2-82dd-31a6275c2a56/",
                "storage": "local",
                "storage_data": null,
                "slug": "a64969d7-abf9-4d77-9573-e68a4104f17c",
                "created_at": "2024-06-17T11:35:56.000000Z",
                "updated_at": "2024-06-17T11:35:56.000000Z",
                "webp": null,
                "size_human": {
                    "B": {
                        "count": "878135",
                        "text": {
                            "ru": {
                                "short": "Б",
                                "long": "Байт"
                            },
                            "en": {
                                "short": "B",
                                "long": "Bytes"
                            }
                        }
                    },
                    "KB": {
                        "count": "857,55",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    },
                    "MB": {
                        "count": "0,84",
                        "text": {
                            "ru": {
                                "short": "МБ",
                                "long": "Мегабайт"
                            },
                            "en": {
                                "short": "MB",
                                "long": "Megabytes"
                            }
                        }
                    },
                    "GB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ГБ",
                                "long": "Гигабайт"
                            },
                            "en": {
                                "short": "GB",
                                "long": "Gigabytes"
                            }
                        }
                    },
                    "TB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ТБ",
                                "long": "Терабай"
                            },
                            "en": {
                                "short": "TB",
                                "long": "terabytes"
                            }
                        }
                    },
                    "human": {
                        "count": "857,55",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    }
                },
                "author": "example",
                "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                "previewImage": null,
                "localtz_created_at": "2024-06-17T14:35:56+03:00",
                "localtz_updated_at": "2024-06-17T14:35:56+03:00"
            }
        ],
        "filesCount": 3,
        "notes": {
            "data": [
                {
                    "id": 57,
                    "name": "Мой первый блокнот в O!task",
                    "description": "В блокноте вы можете структурировать всю входящую информацию, идеи, заметки по проектам и все, что будет необходимо. Блокноты имеют встроенный текстовый редактор, который поможет вам выделить <u><b>самое главное</b></u> и создать необходимую иерархию ваших записей!",
                    "project_id": 188,
                    "user_id": 18,
                    "slug": "0e79e610-1500-448e-bcf7-3f231ca075e5",
                    "deleted_at": null,
                    "created_at": "2024-06-11T10:51:40.000000Z",
                    "updated_at": "2024-06-19T16:38:31.000000Z",
                    "position": 0,
                    "is_pinned": false,
                    "version": null,
                    "need_to_notify": 0,
                    "performers": [],
                    "user": {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:29:51.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:29:51+03:00"
                    },
                    "localtz_deleted_at": "2024-06-19T20:29:51+03:00",
                    "localtz_created_at": "2024-06-11T13:51:40+03:00",
                    "localtz_updated_at": "2024-06-19T19:38:31+03:00"
                }
            ],
            "meta": {
                "current_page": 1,
                "from": 1,
                "last_page": 1,
                "per_page": 1,
                "to": 1,
                "total": 1
            }
        },
        "applications": [
            {
                "id": 41,
                "name": "Google документ в O!task (Edited)",
                "type": "google-documents",
                "href": "https://docs.google.com/document/d/1K6SSk64f9Hb189tHAvIydSlruuLwz4E8lwBBvhVdORk/edit?usp=sharing",
                "code": null,
                "slug": "f8dce4df-45d7-4756-a683-c491e0c6399a",
                "user_id": 18,
                "project_id": 188,
                "created_at": "2024-06-11T10:51:40.000000Z",
                "updated_at": "2024-06-19T17:16:18.000000Z",
                "position": 0,
                "is_pinned": false
            },
            {
                "id": 45,
                "name": "Новый документ",
                "type": "google-documents",
                "href": "https://docs.google.com/document/d/1K6SSk64f9Hb189tHAvIydSlruuLwz4E8lwBBvhVdORk/edit?usp=sharing",
                "code": null,
                "slug": "6034eaac-c26a-4f12-898b-baf71fee27e6",
                "user_id": 18,
                "project_id": 188,
                "created_at": "2024-06-19T17:15:14.000000Z",
                "updated_at": "2024-06-19T17:15:44.000000Z",
                "position": 1,
                "is_pinned": false
            }
        ],
        "applicationsCount": 2,
        "budget": "300000.00",
        "income": "274000.00",
        "expense": "82300.00",
        "profit": 191700,
        "project": {
            "members": [],
            "managers": [],
            "id": 188,
            "name": "Мой первый проект в O!task (демо)",
            "priority_id": 200,
            "description": null,
            "amount": "300000.00",
            "is_regular_amount": false,
            "start_at": "2024-06-11T10:51:38.000000Z",
            "end_at": "2024-12-30T19:00:00.000000Z",
            "status_id": 100,
            "user_id": 18,
            "client_id": 89,
            "slug": "b5fad061-ef75-487c-b2b5-2086581c368a",
            "deleted_at": null,
            "created_at": "2024-06-11T10:51:38.000000Z",
            "updated_at": "2024-06-19T17:22:44.000000Z",
            "team_id": 35,
            "completed_at": null,
            "position": "-0.999886749687500020478125861700",
            "is_pinned": false,
            "end_at_regular": "2024-12-30T22:00:00+03:00",
            "owner": {
                "id": 18,
                "first_name": null,
                "last_name": null,
                "middle_name": null,
                "email": "example@example.example",
                "sex": null,
                "created_at": "2024-06-11T10:51:38.000000Z",
                "last_activity": "2024-06-19T17:29:51.000000Z",
                "currency_id": 1,
                "position": null,
                "full_name": "example",
                "full_name_short": "example",
                "isonline": true,
                "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                "localtz_created_at": "2024-06-11T13:51:38+03:00",
                "localtz_updated_at": "2024-06-19T20:29:51+03:00"
            },
            "tags": [
                {
                    "id": 150,
                    "name": "new",
                    "color": "#8910D9",
                    "user_id": 18,
                    "slug": "ef92869c-bf00-48fd-86c9-0af503025bf5",
                    "created_at": "2024-06-18T16:16:05.000000Z",
                    "updated_at": "2024-06-18T16:16:05.000000Z",
                    "team_id": 35,
                    "bg_color": "#F7E8FF",
                    "model_type": "App\\Models\\Project",
                    "position": "0.000113250312500000000000000000",
                    "pivot": {
                        "taggable_id": 188,
                        "tag_id": 150,
                        "taggable_type": "App\\Models\\Project"
                    }
                }
            ],
            "localtz_start_at": "2024-06-11T13:51:38+03:00",
            "localtz_deleted_at": "2024-06-19T20:29:51+03:00",
            "localtz_end_at": "2024-12-30T22:00:00+03:00",
            "localtz_end_at_regular": "2024-12-30T22:00:00+03:00",
            "localtz_created_at": "2024-06-11T13:51:38+03:00",
            "localtz_updated_at": "2024-06-19T20:22:44+03:00",
            "paid": "274 000.00"
        },
        "name": "Мой первый проект в O!task (демо)",
        "tags": [
            {
                "id": 151,
                "name": "Новая метка (Edited)",
                "color": "#E4BF00",
                "user_id": 18,
                "slug": "c65478c1-3dd0-440c-b230-4193b631ab28",
                "created_at": "2024-06-19T17:17:49.000000Z",
                "updated_at": "2024-06-19T17:18:31.000000Z",
                "team_id": 35,
                "bg_color": "#FFFAE9",
                "model_type": "App\\Models\\Project",
                "position": "0.000113250312500000000000000000"
            },
            {
                "id": 150,
                "name": "new",
                "color": "#8910D9",
                "user_id": 18,
                "slug": "ef92869c-bf00-48fd-86c9-0af503025bf5",
                "created_at": "2024-06-18T16:16:05.000000Z",
                "updated_at": "2024-06-18T16:16:05.000000Z",
                "team_id": 35,
                "bg_color": "#F7E8FF",
                "model_type": "App\\Models\\Project",
                "position": "0.000113250312500000000000000000"
            },
            {
                "id": 149,
                "name": "Первая метка",
                "color": "#E4BF00",
                "user_id": 18,
                "slug": "8e70e86d-c96c-4ef1-91c0-2ee021936b60",
                "created_at": "2024-06-17T11:34:43.000000Z",
                "updated_at": "2024-06-17T11:34:43.000000Z",
                "team_id": 35,
                "bg_color": "#FFFAE9",
                "model_type": "App\\Models\\Task",
                "position": "0.000113250312500000000000000000"
            },
            {
                "id": 143,
                "name": "Консультация",
                "color": "#FFA6394D",
                "user_id": 18,
                "slug": "c0402918-dda7-408f-8f19-f4521379fa9f",
                "created_at": "2024-06-11T10:51:38.000000Z",
                "updated_at": "2024-06-11T10:51:38.000000Z",
                "team_id": 35,
                "bg_color": null,
                "model_type": "",
                "position": "0.000113250312500000000000000000"
            },
            {
                "id": 144,
                "name": "Маркетинг",
                "color": "#22B7424D",
                "user_id": 18,
                "slug": "2b95110d-462a-4838-8f8a-2c844dd7093a",
                "created_at": "2024-06-11T10:51:38.000000Z",
                "updated_at": "2024-06-11T10:51:38.000000Z",
                "team_id": 35,
                "bg_color": null,
                "model_type": "",
                "position": "0.000113250312500000000000000000"
            }
        ]
    },
    "message": "success"
}

Получить файлы проекта для сводки

GET
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/files
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/files"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "files": [
            {
                "id": 457,
                "name": "Мой первый блокнот в O!task",
                "parent_id": 418,
                "type": "file",
                "ordering": null,
                "model_type": "App\\Models\\UserTeam",
                "model_id": 35,
                "extension": "pdf",
                "user_id": 18,
                "collection": null,
                "tag": null,
                "thumbnails": [],
                "width": null,
                "height": null,
                "src": "6415652e-9d71-494c-8065-e80a52bd8411.pdf",
                "mimes": "application/pdf",
                "disk": "yandexcloud",
                "size": 878473,
                "folder": "/uploads/filemanagers/00819fb6-1068-4588-9631-f3c8b7063661/ws-projects-35/b5fad061-ef75-487c-b2b5-2086581c368a/",
                "storage": "local",
                "storage_data": null,
                "slug": "c5ae7d63-cd0a-43f7-95ac-4e89bfc928f6",
                "created_at": "2024-06-19T17:30:43.000000Z",
                "updated_at": "2024-06-19T17:30:43.000000Z",
                "webp": null,
                "size_human": {
                    "B": {
                        "count": "878473",
                        "text": {
                            "ru": {
                                "short": "Б",
                                "long": "Байт"
                            },
                            "en": {
                                "short": "B",
                                "long": "Bytes"
                            }
                        }
                    },
                    "KB": {
                        "count": "857,88",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    },
                    "MB": {
                        "count": "0,84",
                        "text": {
                            "ru": {
                                "short": "МБ",
                                "long": "Мегабайт"
                            },
                            "en": {
                                "short": "MB",
                                "long": "Megabytes"
                            }
                        }
                    },
                    "GB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ГБ",
                                "long": "Гигабайт"
                            },
                            "en": {
                                "short": "GB",
                                "long": "Gigabytes"
                            }
                        }
                    },
                    "TB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ТБ",
                                "long": "Терабай"
                            },
                            "en": {
                                "short": "TB",
                                "long": "terabytes"
                            }
                        }
                    },
                    "human": {
                        "count": "857,88",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    }
                },
                "author": "example",
                "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                "previewImage": null,
                "localtz_created_at": "2024-06-19T20:30:43+03:00",
                "localtz_updated_at": "2024-06-19T20:30:43+03:00"
            },
            {
                "id": 454,
                "name": "124",
                "parent_id": 418,
                "type": "original",
                "ordering": null,
                "model_type": "App\\Models\\Task",
                "model_id": 569,
                "extension": "pdf",
                "user_id": 18,
                "collection": null,
                "tag": null,
                "thumbnails": [],
                "width": null,
                "height": null,
                "src": "2f6d52bb-e155-46ee-b822-ef2a70c67bbf.pdf",
                "mimes": "application/pdf",
                "disk": "yandexcloud",
                "size": 878135,
                "folder": "/uploads/filemanagers/0b83697c-528b-492a-a776-f33079e17ea9/my-projects-18/b5fad061-ef75-487c-b2b5-2086581c368a/tasks/da86a512-e3c6-4e75-9c82-50fa7cbd83a0/",
                "storage": "local",
                "storage_data": null,
                "slug": "5361362f-b760-4b39-af2b-835b89f9c359",
                "created_at": "2024-06-19T15:59:21.000000Z",
                "updated_at": "2024-06-19T15:59:21.000000Z",
                "webp": null,
                "size_human": {
                    "B": {
                        "count": "878135",
                        "text": {
                            "ru": {
                                "short": "Б",
                                "long": "Байт"
                            },
                            "en": {
                                "short": "B",
                                "long": "Bytes"
                            }
                        }
                    },
                    "KB": {
                        "count": "857,55",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    },
                    "MB": {
                        "count": "0,84",
                        "text": {
                            "ru": {
                                "short": "МБ",
                                "long": "Мегабайт"
                            },
                            "en": {
                                "short": "MB",
                                "long": "Megabytes"
                            }
                        }
                    },
                    "GB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ГБ",
                                "long": "Гигабайт"
                            },
                            "en": {
                                "short": "GB",
                                "long": "Gigabytes"
                            }
                        }
                    },
                    "TB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ТБ",
                                "long": "Терабай"
                            },
                            "en": {
                                "short": "TB",
                                "long": "terabytes"
                            }
                        }
                    },
                    "human": {
                        "count": "857,55",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    }
                },
                "author": "example",
                "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                "previewImage": null,
                "localtz_created_at": "2024-06-19T18:59:21+03:00",
                "localtz_updated_at": "2024-06-19T18:59:21+03:00"
            },
            {
                "id": 452,
                "name": "124",
                "parent_id": 418,
                "type": "original",
                "ordering": null,
                "model_type": "App\\Models\\Task",
                "model_id": 592,
                "extension": "pdf",
                "user_id": 18,
                "collection": null,
                "tag": null,
                "thumbnails": [],
                "width": null,
                "height": null,
                "src": "6f46f1f6-a55d-40b2-a572-6162b1666714.pdf",
                "mimes": "application/pdf",
                "disk": "yandexcloud",
                "size": 878135,
                "folder": "/uploads/filemanagers/0b83697c-528b-492a-a776-f33079e17ea9/my-projects-18/b5fad061-ef75-487c-b2b5-2086581c368a/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/",
                "storage": "local",
                "storage_data": null,
                "slug": "5832ed3d-5792-4d55-aa70-e3dc31448609",
                "created_at": "2024-06-17T17:29:21.000000Z",
                "updated_at": "2024-06-17T17:29:21.000000Z",
                "webp": null,
                "size_human": {
                    "B": {
                        "count": "878135",
                        "text": {
                            "ru": {
                                "short": "Б",
                                "long": "Байт"
                            },
                            "en": {
                                "short": "B",
                                "long": "Bytes"
                            }
                        }
                    },
                    "KB": {
                        "count": "857,55",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    },
                    "MB": {
                        "count": "0,84",
                        "text": {
                            "ru": {
                                "short": "МБ",
                                "long": "Мегабайт"
                            },
                            "en": {
                                "short": "MB",
                                "long": "Megabytes"
                            }
                        }
                    },
                    "GB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ГБ",
                                "long": "Гигабайт"
                            },
                            "en": {
                                "short": "GB",
                                "long": "Gigabytes"
                            }
                        }
                    },
                    "TB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ТБ",
                                "long": "Терабай"
                            },
                            "en": {
                                "short": "TB",
                                "long": "terabytes"
                            }
                        }
                    },
                    "human": {
                        "count": "857,55",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    }
                },
                "author": "example",
                "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                "previewImage": null,
                "localtz_created_at": "2024-06-17T20:29:21+03:00",
                "localtz_updated_at": "2024-06-17T20:29:21+03:00"
            },
            {
                "id": 451,
                "name": "124",
                "parent_id": 418,
                "type": "original",
                "ordering": null,
                "model_type": "App\\Models\\Task",
                "model_id": 589,
                "extension": "pdf",
                "user_id": 18,
                "collection": null,
                "tag": null,
                "thumbnails": [],
                "width": null,
                "height": null,
                "src": "ddf96c6a-6d76-4cf6-b141-3ed25f3ec1e5.pdf",
                "mimes": "application/pdf",
                "disk": "yandexcloud",
                "size": 878135,
                "folder": "/uploads/filemanagers/0b83697c-528b-492a-a776-f33079e17ea9/my-projects-18/b5fad061-ef75-487c-b2b5-2086581c368a/tasks/35625069-08a2-45b2-82dd-31a6275c2a56/",
                "storage": "local",
                "storage_data": null,
                "slug": "a64969d7-abf9-4d77-9573-e68a4104f17c",
                "created_at": "2024-06-17T11:35:56.000000Z",
                "updated_at": "2024-06-17T11:35:56.000000Z",
                "webp": null,
                "size_human": {
                    "B": {
                        "count": "878135",
                        "text": {
                            "ru": {
                                "short": "Б",
                                "long": "Байт"
                            },
                            "en": {
                                "short": "B",
                                "long": "Bytes"
                            }
                        }
                    },
                    "KB": {
                        "count": "857,55",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    },
                    "MB": {
                        "count": "0,84",
                        "text": {
                            "ru": {
                                "short": "МБ",
                                "long": "Мегабайт"
                            },
                            "en": {
                                "short": "MB",
                                "long": "Megabytes"
                            }
                        }
                    },
                    "GB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ГБ",
                                "long": "Гигабайт"
                            },
                            "en": {
                                "short": "GB",
                                "long": "Gigabytes"
                            }
                        }
                    },
                    "TB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ТБ",
                                "long": "Терабай"
                            },
                            "en": {
                                "short": "TB",
                                "long": "terabytes"
                            }
                        }
                    },
                    "human": {
                        "count": "857,55",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    }
                },
                "author": "example",
                "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                "previewImage": null,
                "localtz_created_at": "2024-06-17T14:35:56+03:00",
                "localtz_updated_at": "2024-06-17T14:35:56+03:00"
            }
        ],
        "filesCount": 4
    },
    "message": "success"
}

Получить статистику по финансам проекта

GET
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/statistics
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/statistics"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "budget": "300000.00",
        "income": "274010.00",
        "expense": "82300.00",
        "profit": 191710,
        "paid": "274 010.00"
    },
    "message": "success"
}

Добавить участника в проект

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/add-member
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/add-member"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "member_id": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": null,
    "message": "success"
}

Удалить участника из проекта

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/remove-member
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/remove-member"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "member_id": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": null,
    "message": "success"
}

Получить список досок проекта

GET
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/boards
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры запроса

board_slug
string

Slug доски, для которой будут получены задачи (Если не передано, то будут получены задачи для первой доски)

Example:
nesciunt
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/boards"
);

const params = {
    "board_slug": "nesciunt",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "boards": [
            {
                "id": 175,
                "slug": "9e2ca896-5bee-48fb-835c-b8c1b6590f6d",
                "name": "Первая доска",
                "order": 0,
                "project_id": 188,
                "team_id": 35,
                "created_at": "2024-06-11T10:51:38.000000Z",
                "updated_at": "2024-06-11T10:51:38.000000Z",
                "tasks_count": 3
            }
        ],
        "columns": [
            {
                "id": 851,
                "board_id": 175,
                "type": "new",
                "name": "Сделать",
                "color": "#32c3e3",
                "column_ids": [
                    851
                ],
                "columns": [
                    {
                        "id": 851,
                        "name": "Сделать",
                        "color": "#32c3e3",
                        "order": 0,
                        "is_system": true,
                        "type": "new",
                        "board_id": 175,
                        "team_id": 35,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z"
                    }
                ]
            },
            {
                "id": 852,
                "board_id": 175,
                "type": null,
                "name": "В работе",
                "color": "#ffa639",
                "column_ids": [
                    852
                ],
                "columns": [
                    {
                        "id": 852,
                        "name": "В работе",
                        "color": "#ffa639",
                        "order": 1,
                        "is_system": false,
                        "type": null,
                        "board_id": 175,
                        "team_id": 35,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z"
                    }
                ]
            },
            {
                "id": 853,
                "board_id": 175,
                "type": null,
                "name": "На проверке",
                "color": "#ff576a",
                "column_ids": [
                    853
                ],
                "columns": [
                    {
                        "id": 853,
                        "name": "На проверке",
                        "color": "#ff576a",
                        "order": 2,
                        "is_system": false,
                        "type": null,
                        "board_id": 175,
                        "team_id": 35,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z"
                    }
                ]
            },
            {
                "id": 854,
                "board_id": 175,
                "type": "completed",
                "name": "Завершено",
                "color": "#42b525",
                "column_ids": [
                    854
                ],
                "columns": [
                    {
                        "id": 854,
                        "name": "Завершено",
                        "color": "#42b525",
                        "order": 3,
                        "is_system": true,
                        "type": "completed",
                        "board_id": 175,
                        "team_id": 35,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z"
                    }
                ]
            }
        ],
        "tasks": [
            {
                "id": 569,
                "name": "Моя первая задача в O!task",
                "priority_id": 3,
                "description": "В этом поле вы можете добавлять описание задачам",
                "end_at": "2024-06-12T10:51:38.000000Z",
                "status_id": 100,
                "kanban_status_id": 100,
                "project_id": 188,
                "slug": "da86a512-e3c6-4e75-9c82-50fa7cbd83a0",
                "deleted_at": null,
                "created_at": "2024-06-11T10:51:38.000000Z",
                "updated_at": "2024-06-19T15:59:20.000000Z",
                "creator_id": 18,
                "team_id": 35,
                "board_id": 175,
                "board_column_id": 851,
                "position": "1.000113250312500000000000000000",
                "picture": null,
                "performers": [
                    {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:32:17.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "pivot": {
                            "task_id": 569,
                            "user_id": 18
                        },
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:32:17+03:00"
                    }
                ],
                "media": [
                    {
                        "id": 454,
                        "name": "124",
                        "parent_id": 418,
                        "type": "original",
                        "ordering": null,
                        "model_type": "App\\Models\\Task",
                        "model_id": 569,
                        "extension": "pdf",
                        "user_id": 18,
                        "collection": null,
                        "tag": null,
                        "thumbnails": [],
                        "width": null,
                        "height": null,
                        "src": "2f6d52bb-e155-46ee-b822-ef2a70c67bbf.pdf",
                        "mimes": "application/pdf",
                        "disk": "yandexcloud",
                        "size": 878135,
                        "folder": "/uploads/filemanagers/0b83697c-528b-492a-a776-f33079e17ea9/my-projects-18/b5fad061-ef75-487c-b2b5-2086581c368a/tasks/da86a512-e3c6-4e75-9c82-50fa7cbd83a0/",
                        "storage": "local",
                        "storage_data": null,
                        "slug": "5361362f-b760-4b39-af2b-835b89f9c359",
                        "created_at": "2024-06-19T15:59:21.000000Z",
                        "updated_at": "2024-06-19T15:59:21.000000Z",
                        "webp": null,
                        "size_human": {
                            "B": {
                                "count": "878135",
                                "text": {
                                    "ru": {
                                        "short": "Б",
                                        "long": "Байт"
                                    },
                                    "en": {
                                        "short": "B",
                                        "long": "Bytes"
                                    }
                                }
                            },
                            "KB": {
                                "count": "857,55",
                                "text": {
                                    "ru": {
                                        "short": "KB",
                                        "long": "Килобайт"
                                    },
                                    "en": {
                                        "short": "KB",
                                        "long": "Kilobytes"
                                    }
                                }
                            },
                            "MB": {
                                "count": "0,84",
                                "text": {
                                    "ru": {
                                        "short": "МБ",
                                        "long": "Мегабайт"
                                    },
                                    "en": {
                                        "short": "MB",
                                        "long": "Megabytes"
                                    }
                                }
                            },
                            "GB": {
                                "count": "0,00",
                                "text": {
                                    "ru": {
                                        "short": "ГБ",
                                        "long": "Гигабайт"
                                    },
                                    "en": {
                                        "short": "GB",
                                        "long": "Gigabytes"
                                    }
                                }
                            },
                            "TB": {
                                "count": "0,00",
                                "text": {
                                    "ru": {
                                        "short": "ТБ",
                                        "long": "Терабай"
                                    },
                                    "en": {
                                        "short": "TB",
                                        "long": "terabytes"
                                    }
                                }
                            },
                            "human": {
                                "count": "857,55",
                                "text": {
                                    "ru": {
                                        "short": "KB",
                                        "long": "Килобайт"
                                    },
                                    "en": {
                                        "short": "KB",
                                        "long": "Kilobytes"
                                    }
                                }
                            }
                        },
                        "author": "example",
                        "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "previewImage": null,
                        "localtz_created_at": "2024-06-19T18:59:21+03:00",
                        "localtz_updated_at": "2024-06-19T18:59:21+03:00"
                    }
                ],
                "comments": [
                    {
                        "id": 47,
                        "taggable_type": "App\\Models\\Task",
                        "taggable_id": 569,
                        "parent_id": null,
                        "user_id": 18,
                        "comment": "Первый комментарий",
                        "slug": "79bd2e41-6af2-4dc3-a651-51d45acfa4b9",
                        "deleted_at": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "editable": false,
                        "commentHtml": "Первый комментарий",
                        "user": {
                            "id": 18,
                            "first_name": null,
                            "last_name": null,
                            "middle_name": null,
                            "email": "example@example.example",
                            "sex": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "last_activity": "2024-06-19T17:32:17.000000Z",
                            "currency_id": 1,
                            "position": null,
                            "full_name": "example",
                            "full_name_short": "example",
                            "isonline": true,
                            "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-19T20:32:17+03:00"
                        },
                        "localtz_deleted_at": "2024-06-19T20:32:17+03:00",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                    },
                    {
                        "id": 48,
                        "taggable_type": "App\\Models\\Task",
                        "taggable_id": 569,
                        "parent_id": null,
                        "user_id": 18,
                        "comment": "Второй комментарий",
                        "slug": "fa32302b-bb74-41d9-841a-07910791ef70",
                        "deleted_at": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "editable": false,
                        "commentHtml": "Второй комментарий",
                        "user": {
                            "id": 18,
                            "first_name": null,
                            "last_name": null,
                            "middle_name": null,
                            "email": "example@example.example",
                            "sex": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "last_activity": "2024-06-19T17:32:17.000000Z",
                            "currency_id": 1,
                            "position": null,
                            "full_name": "example",
                            "full_name_short": "example",
                            "isonline": true,
                            "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-19T20:32:17+03:00"
                        },
                        "localtz_deleted_at": "2024-06-19T20:32:17+03:00",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                    }
                ],
                "tags": [
                    {
                        "id": 149,
                        "name": "Первая метка",
                        "color": "#E4BF00",
                        "user_id": 18,
                        "slug": "8e70e86d-c96c-4ef1-91c0-2ee021936b60",
                        "created_at": "2024-06-17T11:34:43.000000Z",
                        "updated_at": "2024-06-17T11:34:43.000000Z",
                        "team_id": 35,
                        "bg_color": "#FFFAE9",
                        "model_type": "App\\Models\\Task",
                        "position": "0.000113250312500000000000000000",
                        "pivot": {
                            "taggable_id": 569,
                            "tag_id": 149,
                            "taggable_type": "App\\Models\\Task"
                        }
                    }
                ],
                "timer": null,
                "subtasks": [
                    {
                        "id": 570,
                        "name": "Выполненная подзадача",
                        "priority_id": 0,
                        "description": null,
                        "end_at": null,
                        "status_id": 100,
                        "kanban_status_id": 100,
                        "project_id": 188,
                        "slug": "4cd6fa71-af1b-485d-8df9-8c846c68c112",
                        "deleted_at": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "creator_id": 18,
                        "team_id": 35,
                        "board_id": 175,
                        "board_column_id": 854,
                        "position": "2.000113250312500000000000000000",
                        "picture": null,
                        "pivot": {
                            "task_id": 569,
                            "subtask_id": 570
                        },
                        "performers": [],
                        "localtz_end_at": "2024-06-19T20:32:18+03:00",
                        "localtz_deleted_at": "2024-06-19T20:32:18+03:00",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                    },
                    {
                        "id": 571,
                        "name": "Вторая выполненная подзадача",
                        "priority_id": 0,
                        "description": null,
                        "end_at": null,
                        "status_id": 100,
                        "kanban_status_id": 100,
                        "project_id": 188,
                        "slug": "a2ca118f-3e0f-4fb8-95d1-fe6dfd3beff9",
                        "deleted_at": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "creator_id": 18,
                        "team_id": 35,
                        "board_id": 175,
                        "board_column_id": 854,
                        "position": "3.000113250312500000000000000000",
                        "picture": null,
                        "pivot": {
                            "task_id": 569,
                            "subtask_id": 571
                        },
                        "performers": [],
                        "localtz_end_at": "2024-06-19T20:32:18+03:00",
                        "localtz_deleted_at": "2024-06-19T20:32:18+03:00",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                    },
                    {
                        "id": 572,
                        "name": "Подзадача",
                        "priority_id": 0,
                        "description": null,
                        "end_at": "2024-06-12T10:51:38.000000Z",
                        "status_id": 100,
                        "kanban_status_id": 100,
                        "project_id": 188,
                        "slug": "e5994fcd-2757-4b27-b94a-0dcf68ffd91a",
                        "deleted_at": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "creator_id": 18,
                        "team_id": 35,
                        "board_id": 175,
                        "board_column_id": 851,
                        "position": "4.000113250312500000000000000000",
                        "picture": null,
                        "pivot": {
                            "task_id": 569,
                            "subtask_id": 572
                        },
                        "performers": [],
                        "localtz_end_at": "2024-06-12T13:51:38+03:00",
                        "localtz_deleted_at": "2024-06-19T20:32:18+03:00",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                    }
                ],
                "recurring": {
                    "id": 58,
                    "task_id": 569,
                    "type": "every-month",
                    "time": "15:51:00",
                    "skip_weekends": true,
                    "value": "10",
                    "next_replay": "2024-07-10 13:51:00",
                    "replayed_at": null,
                    "created_at": "2024-06-11T10:51:38.000000Z",
                    "updated_at": "2024-06-11T10:51:38.000000Z",
                    "timezone": "Europe/Moscow"
                },
                "reminder": {
                    "id": 32,
                    "date": "2024-07-11 15:51:38",
                    "task_id": 569,
                    "created_at": "2024-06-11T10:51:38.000000Z",
                    "updated_at": "2024-06-11T10:51:38.000000Z"
                },
                "custom_fields": [
                    {
                        "id": 74,
                        "team_id": 35,
                        "name": "Название поля",
                        "type": "text",
                        "show_in_cards": true,
                        "always_show_in_task": false,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "order": 1,
                        "pivot": {
                            "task_id": 569,
                            "field_id": 74,
                            "value": "значение"
                        }
                    },
                    {
                        "id": 75,
                        "team_id": 35,
                        "name": "Предоплата",
                        "type": "money",
                        "show_in_cards": true,
                        "always_show_in_task": false,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-17T15:41:10.000000Z",
                        "order": 3,
                        "pivot": {
                            "task_id": 569,
                            "field_id": 75,
                            "value": "20000"
                        }
                    },
                    {
                        "id": 77,
                        "team_id": 35,
                        "name": "Оплачено",
                        "type": "boolean",
                        "show_in_cards": true,
                        "always_show_in_task": false,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-17T15:41:10.000000Z",
                        "order": 2,
                        "pivot": {
                            "task_id": 569,
                            "field_id": 77,
                            "value": true
                        }
                    }
                ],
                "localtz_end_at": "2024-06-12T13:51:38+03:00",
                "localtz_deleted_at": "2024-06-19T20:32:18+03:00",
                "localtz_created_at": "2024-06-11T13:51:38+03:00",
                "localtz_updated_at": "2024-06-19T18:59:20+03:00"
            },
            {
                "id": 573,
                "name": "Задача с критическим приоритетом",
                "priority_id": 1,
                "description": "Задачи с критическим приоритетом всегда будут подниматься на первые места в столбце",
                "end_at": "2024-06-12T10:51:40.000000Z",
                "status_id": 100,
                "kanban_status_id": 100,
                "project_id": 188,
                "slug": "ccaf01e1-1f6c-41f4-acec-64deca223af1",
                "deleted_at": null,
                "created_at": "2024-06-11T10:51:40.000000Z",
                "updated_at": "2024-06-17T10:21:12.000000Z",
                "creator_id": 18,
                "team_id": 35,
                "board_id": 175,
                "board_column_id": 851,
                "position": "1.500113250312499868499571675784",
                "picture": "https://example.example/storage/uploads/tasks/6011a460-e90b-4830-bfa8-9307fa3c4df4.jpeg",
                "performers": [
                    {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:32:17.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "pivot": {
                            "task_id": 573,
                            "user_id": 18
                        },
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:32:17+03:00"
                    }
                ],
                "media": [],
                "comments": [],
                "tags": [],
                "timer": null,
                "subtasks": [],
                "recurring": null,
                "reminder": null,
                "custom_fields": [],
                "localtz_end_at": "2024-06-12T13:51:40+03:00",
                "localtz_deleted_at": "2024-06-19T20:32:18+03:00",
                "localtz_created_at": "2024-06-11T13:51:40+03:00",
                "localtz_updated_at": "2024-06-17T13:21:12+03:00"
            },
            {
                "id": 574,
                "name": "Задача без приоритета",
                "priority_id": 0,
                "description": "Обычная задача без приоритета",
                "end_at": "2024-06-12T10:51:40.000000Z",
                "status_id": 100,
                "kanban_status_id": 100,
                "project_id": 188,
                "slug": "fe7b65d2-a679-48d5-a88f-a770a722357e",
                "deleted_at": null,
                "created_at": "2024-06-11T10:51:40.000000Z",
                "updated_at": "2024-06-11T10:51:40.000000Z",
                "creator_id": 18,
                "team_id": 35,
                "board_id": 175,
                "board_column_id": 853,
                "position": "5.000113250312500000000000000000",
                "picture": null,
                "performers": [
                    {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:32:17.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "pivot": {
                            "task_id": 574,
                            "user_id": 18
                        },
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:32:17+03:00"
                    }
                ],
                "media": [],
                "comments": [],
                "tags": [],
                "timer": null,
                "subtasks": [],
                "recurring": null,
                "reminder": null,
                "custom_fields": [],
                "localtz_end_at": "2024-06-12T13:51:40+03:00",
                "localtz_deleted_at": "2024-06-19T20:32:18+03:00",
                "localtz_created_at": "2024-06-11T13:51:40+03:00",
                "localtz_updated_at": "2024-06-11T13:51:40+03:00"
            },
            {
                "id": 575,
                "name": "А так выглядит завершенная задача",
                "priority_id": 0,
                "description": "Задача прошла весь цикл и теперь завершена",
                "end_at": "2024-06-12T10:51:40.000000Z",
                "status_id": 100,
                "kanban_status_id": 100,
                "project_id": 188,
                "slug": "511c514e-7bd4-4620-b01c-8877fb7d76e5",
                "deleted_at": null,
                "created_at": "2024-06-11T10:51:40.000000Z",
                "updated_at": "2024-06-11T10:51:40.000000Z",
                "creator_id": 18,
                "team_id": 35,
                "board_id": 175,
                "board_column_id": 854,
                "position": "6.000113250312500000000000000000",
                "picture": null,
                "performers": [
                    {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:32:17.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "pivot": {
                            "task_id": 575,
                            "user_id": 18
                        },
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:32:17+03:00"
                    }
                ],
                "media": [],
                "comments": [],
                "tags": [],
                "timer": null,
                "subtasks": [],
                "recurring": null,
                "reminder": null,
                "custom_fields": [],
                "localtz_end_at": "2024-06-12T13:51:40+03:00",
                "localtz_deleted_at": "2024-06-19T20:32:18+03:00",
                "localtz_created_at": "2024-06-11T13:51:40+03:00",
                "localtz_updated_at": "2024-06-11T13:51:40+03:00"
            }
        ],
        "options": {
            "performers": [
                {
                    "id": 18,
                    "first_name": null,
                    "last_name": null,
                    "middle_name": null,
                    "email": "example@example.example",
                    "sex": null,
                    "created_at": "2024-06-11T10:51:38.000000Z",
                    "last_activity": "2024-06-19T17:32:17.000000Z",
                    "currency_id": 1,
                    "position": null,
                    "full_name": "example",
                    "full_name_short": "example",
                    "isonline": true,
                    "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                    "localtz_created_at": "2024-06-11T13:51:38+03:00",
                    "localtz_updated_at": "2024-06-19T20:32:17+03:00"
                }
            ],
            "tags": [
                {
                    "id": 149,
                    "name": "Первая метка",
                    "color": "#E4BF00",
                    "user_id": 18,
                    "slug": "8e70e86d-c96c-4ef1-91c0-2ee021936b60",
                    "created_at": "2024-06-17T11:34:43.000000Z",
                    "updated_at": "2024-06-17T11:34:43.000000Z",
                    "team_id": 35,
                    "bg_color": "#FFFAE9",
                    "model_type": "App\\Models\\Task",
                    "position": "0.000113250312500000000000000000"
                }
            ],
            "priorities": [
                3,
                1,
                0
            ],
            "statuses": [
                {
                    "id": 851,
                    "name": "Сделать",
                    "type": "new",
                    "ids": [
                        851
                    ]
                },
                {
                    "id": 853,
                    "name": "На проверке",
                    "type": null,
                    "ids": [
                        853
                    ]
                },
                {
                    "id": 854,
                    "name": "Завершено",
                    "type": "completed",
                    "ids": [
                        854
                    ]
                }
            ]
        },
        "default_board": "9e2ca896-5bee-48fb-835c-b8c1b6590f6d"
    },
    "message": "success"
}

Создать доску для проекта

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/boards
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/boards"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Доска"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "name": "Вторая доска",
        "team_id": 35,
        "project_id": 188,
        "slug": "1cfdd132-41ad-48d5-89c2-4cce3d8fafb7",
        "updated_at": "2024-06-19T17:32:53.000000Z",
        "created_at": "2024-06-19T17:32:53.000000Z",
        "id": 186,
        "tasks_count": 0,
        "columns": [
            {
                "id": 921,
                "name": "Сделать",
                "color": "#32c3e3",
                "order": 0,
                "is_system": true,
                "type": "new",
                "board_id": 186,
                "team_id": 35,
                "created_at": "2024-06-19T17:32:53.000000Z",
                "updated_at": "2024-06-19T17:32:53.000000Z"
            },
            {
                "id": 922,
                "name": "В работе",
                "color": "#ffa639",
                "order": 1,
                "is_system": false,
                "type": null,
                "board_id": 186,
                "team_id": 35,
                "created_at": "2024-06-19T17:32:53.000000Z",
                "updated_at": "2024-06-19T17:32:53.000000Z"
            },
            {
                "id": 923,
                "name": "На проверке",
                "color": "#ff576a",
                "order": 2,
                "is_system": false,
                "type": null,
                "board_id": 186,
                "team_id": 35,
                "created_at": "2024-06-19T17:32:53.000000Z",
                "updated_at": "2024-06-19T17:32:53.000000Z"
            },
            {
                "id": 924,
                "name": "Завершено",
                "color": "#42b525",
                "order": 3,
                "is_system": true,
                "type": "completed",
                "board_id": 186,
                "team_id": 35,
                "created_at": "2024-06-19T17:32:53.000000Z",
                "updated_at": "2024-06-19T17:32:53.000000Z"
            }
        ],
        "project": {
            "id": 188,
            "name": "Мой первый проект в O!task (демо)",
            "priority_id": 200,
            "description": null,
            "amount": "300000.00",
            "is_regular_amount": false,
            "start_at": "2024-06-11T10:51:38.000000Z",
            "end_at": "2024-12-30T19:00:00.000000Z",
            "status_id": 100,
            "user_id": 18,
            "client_id": 89,
            "slug": "b5fad061-ef75-487c-b2b5-2086581c368a",
            "deleted_at": null,
            "created_at": "2024-06-11T10:51:38.000000Z",
            "updated_at": "2024-06-19T17:22:44.000000Z",
            "team_id": 35,
            "completed_at": null,
            "position": "-0.999886749687500020478125861700",
            "is_pinned": false,
            "end_at_regular": "2024-12-30T22:00:00+03:00",
            "localtz_start_at": "2024-06-11T13:51:38+03:00",
            "localtz_deleted_at": "2024-06-19T20:32:53+03:00",
            "localtz_end_at": "2024-12-30T22:00:00+03:00",
            "localtz_end_at_regular": "2024-12-30T22:00:00+03:00",
            "localtz_created_at": "2024-06-11T13:51:38+03:00",
            "localtz_updated_at": "2024-06-19T20:22:44+03:00"
        }
    },
    "message": "success"
}

Изменить позицию досок

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/boards/change-position
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/boards/change-position"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "boards": [
        1,
        2,
        3
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": null,
    "message": "success"
}

Получить задачи для доски

GET
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/boards/{board_slug}
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248
board_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/boards/d823e13a-b255-431e-b425-6c211c038248"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "columns": [
            {
                "id": 851,
                "board_id": 175,
                "type": "new",
                "name": "Сделать",
                "color": "#32c3e3",
                "column_ids": [
                    851
                ],
                "columns": [
                    {
                        "id": 851,
                        "name": "Сделать",
                        "color": "#32c3e3",
                        "order": 0,
                        "is_system": true,
                        "type": "new",
                        "board_id": 175,
                        "team_id": 35,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z"
                    }
                ]
            },
            {
                "id": 852,
                "board_id": 175,
                "type": null,
                "name": "В работе",
                "color": "#ffa639",
                "column_ids": [
                    852
                ],
                "columns": [
                    {
                        "id": 852,
                        "name": "В работе",
                        "color": "#ffa639",
                        "order": 1,
                        "is_system": false,
                        "type": null,
                        "board_id": 175,
                        "team_id": 35,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z"
                    }
                ]
            },
            {
                "id": 853,
                "board_id": 175,
                "type": null,
                "name": "На проверке",
                "color": "#ff576a",
                "column_ids": [
                    853
                ],
                "columns": [
                    {
                        "id": 853,
                        "name": "На проверке",
                        "color": "#ff576a",
                        "order": 2,
                        "is_system": false,
                        "type": null,
                        "board_id": 175,
                        "team_id": 35,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z"
                    }
                ]
            },
            {
                "id": 854,
                "board_id": 175,
                "type": "completed",
                "name": "Завершено",
                "color": "#42b525",
                "column_ids": [
                    854
                ],
                "columns": [
                    {
                        "id": 854,
                        "name": "Завершено",
                        "color": "#42b525",
                        "order": 3,
                        "is_system": true,
                        "type": "completed",
                        "board_id": 175,
                        "team_id": 35,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z"
                    }
                ]
            }
        ],
        "tasks": [
            {
                "id": 569,
                "name": "Моя первая задача в O!task",
                "priority_id": 3,
                "description": "В этом поле вы можете добавлять описание задачам",
                "end_at": "2024-06-12T10:51:38.000000Z",
                "status_id": 100,
                "kanban_status_id": 100,
                "project_id": 188,
                "slug": "da86a512-e3c6-4e75-9c82-50fa7cbd83a0",
                "deleted_at": null,
                "created_at": "2024-06-11T10:51:38.000000Z",
                "updated_at": "2024-06-19T15:59:20.000000Z",
                "creator_id": 18,
                "team_id": 35,
                "board_id": 175,
                "board_column_id": 851,
                "position": "1.000113250312500000000000000000",
                "picture": null,
                "performers": [
                    {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:33:31.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "pivot": {
                            "task_id": 569,
                            "user_id": 18
                        },
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:33:31+03:00"
                    }
                ],
                "media": [
                    {
                        "id": 454,
                        "name": "124",
                        "parent_id": 418,
                        "type": "original",
                        "ordering": null,
                        "model_type": "App\\Models\\Task",
                        "model_id": 569,
                        "extension": "pdf",
                        "user_id": 18,
                        "collection": null,
                        "tag": null,
                        "thumbnails": [],
                        "width": null,
                        "height": null,
                        "src": "2f6d52bb-e155-46ee-b822-ef2a70c67bbf.pdf",
                        "mimes": "application/pdf",
                        "disk": "yandexcloud",
                        "size": 878135,
                        "folder": "/uploads/filemanagers/0b83697c-528b-492a-a776-f33079e17ea9/my-projects-18/b5fad061-ef75-487c-b2b5-2086581c368a/tasks/da86a512-e3c6-4e75-9c82-50fa7cbd83a0/",
                        "storage": "local",
                        "storage_data": null,
                        "slug": "5361362f-b760-4b39-af2b-835b89f9c359",
                        "created_at": "2024-06-19T15:59:21.000000Z",
                        "updated_at": "2024-06-19T15:59:21.000000Z",
                        "webp": null,
                        "size_human": {
                            "B": {
                                "count": "878135",
                                "text": {
                                    "ru": {
                                        "short": "Б",
                                        "long": "Байт"
                                    },
                                    "en": {
                                        "short": "B",
                                        "long": "Bytes"
                                    }
                                }
                            },
                            "KB": {
                                "count": "857,55",
                                "text": {
                                    "ru": {
                                        "short": "KB",
                                        "long": "Килобайт"
                                    },
                                    "en": {
                                        "short": "KB",
                                        "long": "Kilobytes"
                                    }
                                }
                            },
                            "MB": {
                                "count": "0,84",
                                "text": {
                                    "ru": {
                                        "short": "МБ",
                                        "long": "Мегабайт"
                                    },
                                    "en": {
                                        "short": "MB",
                                        "long": "Megabytes"
                                    }
                                }
                            },
                            "GB": {
                                "count": "0,00",
                                "text": {
                                    "ru": {
                                        "short": "ГБ",
                                        "long": "Гигабайт"
                                    },
                                    "en": {
                                        "short": "GB",
                                        "long": "Gigabytes"
                                    }
                                }
                            },
                            "TB": {
                                "count": "0,00",
                                "text": {
                                    "ru": {
                                        "short": "ТБ",
                                        "long": "Терабай"
                                    },
                                    "en": {
                                        "short": "TB",
                                        "long": "terabytes"
                                    }
                                }
                            },
                            "human": {
                                "count": "857,55",
                                "text": {
                                    "ru": {
                                        "short": "KB",
                                        "long": "Килобайт"
                                    },
                                    "en": {
                                        "short": "KB",
                                        "long": "Kilobytes"
                                    }
                                }
                            }
                        },
                        "author": "example",
                        "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "previewImage": null,
                        "localtz_created_at": "2024-06-19T18:59:21+03:00",
                        "localtz_updated_at": "2024-06-19T18:59:21+03:00"
                    }
                ],
                "comments": [
                    {
                        "id": 47,
                        "taggable_type": "App\\Models\\Task",
                        "taggable_id": 569,
                        "parent_id": null,
                        "user_id": 18,
                        "comment": "Первый комментарий",
                        "slug": "79bd2e41-6af2-4dc3-a651-51d45acfa4b9",
                        "deleted_at": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "editable": false,
                        "commentHtml": "Первый комментарий",
                        "user": {
                            "id": 18,
                            "first_name": null,
                            "last_name": null,
                            "middle_name": null,
                            "email": "example@example.example",
                            "sex": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "last_activity": "2024-06-19T17:33:31.000000Z",
                            "currency_id": 1,
                            "position": null,
                            "full_name": "example",
                            "full_name_short": "example",
                            "isonline": true,
                            "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-19T20:33:31+03:00"
                        },
                        "localtz_deleted_at": "2024-06-19T20:33:32+03:00",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                    },
                    {
                        "id": 48,
                        "taggable_type": "App\\Models\\Task",
                        "taggable_id": 569,
                        "parent_id": null,
                        "user_id": 18,
                        "comment": "Второй комментарий",
                        "slug": "fa32302b-bb74-41d9-841a-07910791ef70",
                        "deleted_at": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "editable": false,
                        "commentHtml": "Второй комментарий",
                        "user": {
                            "id": 18,
                            "first_name": null,
                            "last_name": null,
                            "middle_name": null,
                            "email": "example@example.example",
                            "sex": null,
                            "created_at": "2024-06-11T10:51:38.000000Z",
                            "last_activity": "2024-06-19T17:33:31.000000Z",
                            "currency_id": 1,
                            "position": null,
                            "full_name": "example",
                            "full_name_short": "example",
                            "isonline": true,
                            "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                            "localtz_created_at": "2024-06-11T13:51:38+03:00",
                            "localtz_updated_at": "2024-06-19T20:33:31+03:00"
                        },
                        "localtz_deleted_at": "2024-06-19T20:33:32+03:00",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                    }
                ],
                "tags": [
                    {
                        "id": 149,
                        "name": "Первая метка",
                        "color": "#E4BF00",
                        "user_id": 18,
                        "slug": "8e70e86d-c96c-4ef1-91c0-2ee021936b60",
                        "created_at": "2024-06-17T11:34:43.000000Z",
                        "updated_at": "2024-06-17T11:34:43.000000Z",
                        "team_id": 35,
                        "bg_color": "#FFFAE9",
                        "model_type": "App\\Models\\Task",
                        "position": "0.000113250312500000000000000000",
                        "pivot": {
                            "taggable_id": 569,
                            "tag_id": 149,
                            "taggable_type": "App\\Models\\Task"
                        }
                    }
                ],
                "timer": null,
                "subtasks": [
                    {
                        "id": 570,
                        "name": "Выполненная подзадача",
                        "priority_id": 0,
                        "description": null,
                        "end_at": null,
                        "status_id": 100,
                        "kanban_status_id": 100,
                        "project_id": 188,
                        "slug": "4cd6fa71-af1b-485d-8df9-8c846c68c112",
                        "deleted_at": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "creator_id": 18,
                        "team_id": 35,
                        "board_id": 175,
                        "board_column_id": 854,
                        "position": "2.000113250312500000000000000000",
                        "picture": null,
                        "pivot": {
                            "task_id": 569,
                            "subtask_id": 570
                        },
                        "performers": [],
                        "localtz_end_at": "2024-06-19T20:33:32+03:00",
                        "localtz_deleted_at": "2024-06-19T20:33:32+03:00",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                    },
                    {
                        "id": 571,
                        "name": "Вторая выполненная подзадача",
                        "priority_id": 0,
                        "description": null,
                        "end_at": null,
                        "status_id": 100,
                        "kanban_status_id": 100,
                        "project_id": 188,
                        "slug": "a2ca118f-3e0f-4fb8-95d1-fe6dfd3beff9",
                        "deleted_at": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "creator_id": 18,
                        "team_id": 35,
                        "board_id": 175,
                        "board_column_id": 854,
                        "position": "3.000113250312500000000000000000",
                        "picture": null,
                        "pivot": {
                            "task_id": 569,
                            "subtask_id": 571
                        },
                        "performers": [],
                        "localtz_end_at": "2024-06-19T20:33:32+03:00",
                        "localtz_deleted_at": "2024-06-19T20:33:32+03:00",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                    },
                    {
                        "id": 572,
                        "name": "Подзадача",
                        "priority_id": 0,
                        "description": null,
                        "end_at": "2024-06-12T10:51:38.000000Z",
                        "status_id": 100,
                        "kanban_status_id": 100,
                        "project_id": 188,
                        "slug": "e5994fcd-2757-4b27-b94a-0dcf68ffd91a",
                        "deleted_at": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "creator_id": 18,
                        "team_id": 35,
                        "board_id": 175,
                        "board_column_id": 851,
                        "position": "4.000113250312500000000000000000",
                        "picture": null,
                        "pivot": {
                            "task_id": 569,
                            "subtask_id": 572
                        },
                        "performers": [],
                        "localtz_end_at": "2024-06-12T13:51:38+03:00",
                        "localtz_deleted_at": "2024-06-19T20:33:32+03:00",
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-11T13:51:38+03:00"
                    }
                ],
                "recurring": {
                    "id": 58,
                    "task_id": 569,
                    "type": "every-month",
                    "time": "15:51:00",
                    "skip_weekends": true,
                    "value": "10",
                    "next_replay": "2024-07-10 13:51:00",
                    "replayed_at": null,
                    "created_at": "2024-06-11T10:51:38.000000Z",
                    "updated_at": "2024-06-11T10:51:38.000000Z",
                    "timezone": "Europe/Moscow"
                },
                "reminder": {
                    "id": 32,
                    "date": "2024-07-11 15:51:38",
                    "task_id": 569,
                    "created_at": "2024-06-11T10:51:38.000000Z",
                    "updated_at": "2024-06-11T10:51:38.000000Z"
                },
                "custom_fields": [
                    {
                        "id": 74,
                        "team_id": 35,
                        "name": "Название поля",
                        "type": "text",
                        "show_in_cards": true,
                        "always_show_in_task": false,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-11T10:51:38.000000Z",
                        "order": 1,
                        "pivot": {
                            "task_id": 569,
                            "field_id": 74,
                            "value": "значение"
                        }
                    },
                    {
                        "id": 75,
                        "team_id": 35,
                        "name": "Предоплата",
                        "type": "money",
                        "show_in_cards": true,
                        "always_show_in_task": false,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-17T15:41:10.000000Z",
                        "order": 3,
                        "pivot": {
                            "task_id": 569,
                            "field_id": 75,
                            "value": "20000"
                        }
                    },
                    {
                        "id": 77,
                        "team_id": 35,
                        "name": "Оплачено",
                        "type": "boolean",
                        "show_in_cards": true,
                        "always_show_in_task": false,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "updated_at": "2024-06-17T15:41:10.000000Z",
                        "order": 2,
                        "pivot": {
                            "task_id": 569,
                            "field_id": 77,
                            "value": true
                        }
                    }
                ],
                "localtz_end_at": "2024-06-12T13:51:38+03:00",
                "localtz_deleted_at": "2024-06-19T20:33:32+03:00",
                "localtz_created_at": "2024-06-11T13:51:38+03:00",
                "localtz_updated_at": "2024-06-19T18:59:20+03:00"
            },
            {
                "id": 573,
                "name": "Задача с критическим приоритетом",
                "priority_id": 1,
                "description": "Задачи с критическим приоритетом всегда будут подниматься на первые места в столбце",
                "end_at": "2024-06-12T10:51:40.000000Z",
                "status_id": 100,
                "kanban_status_id": 100,
                "project_id": 188,
                "slug": "ccaf01e1-1f6c-41f4-acec-64deca223af1",
                "deleted_at": null,
                "created_at": "2024-06-11T10:51:40.000000Z",
                "updated_at": "2024-06-17T10:21:12.000000Z",
                "creator_id": 18,
                "team_id": 35,
                "board_id": 175,
                "board_column_id": 851,
                "position": "1.500113250312499868499571675784",
                "picture": "https://example.example/storage/uploads/tasks/6011a460-e90b-4830-bfa8-9307fa3c4df4.jpeg",
                "performers": [
                    {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:33:31.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "pivot": {
                            "task_id": 573,
                            "user_id": 18
                        },
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:33:31+03:00"
                    }
                ],
                "media": [],
                "comments": [],
                "tags": [],
                "timer": null,
                "subtasks": [],
                "recurring": null,
                "reminder": null,
                "custom_fields": [],
                "localtz_end_at": "2024-06-12T13:51:40+03:00",
                "localtz_deleted_at": "2024-06-19T20:33:32+03:00",
                "localtz_created_at": "2024-06-11T13:51:40+03:00",
                "localtz_updated_at": "2024-06-17T13:21:12+03:00"
            },
            {
                "id": 574,
                "name": "Задача без приоритета",
                "priority_id": 0,
                "description": "Обычная задача без приоритета",
                "end_at": "2024-06-12T10:51:40.000000Z",
                "status_id": 100,
                "kanban_status_id": 100,
                "project_id": 188,
                "slug": "fe7b65d2-a679-48d5-a88f-a770a722357e",
                "deleted_at": null,
                "created_at": "2024-06-11T10:51:40.000000Z",
                "updated_at": "2024-06-11T10:51:40.000000Z",
                "creator_id": 18,
                "team_id": 35,
                "board_id": 175,
                "board_column_id": 853,
                "position": "5.000113250312500000000000000000",
                "picture": null,
                "performers": [
                    {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:33:31.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "pivot": {
                            "task_id": 574,
                            "user_id": 18
                        },
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:33:31+03:00"
                    }
                ],
                "media": [],
                "comments": [],
                "tags": [],
                "timer": null,
                "subtasks": [],
                "recurring": null,
                "reminder": null,
                "custom_fields": [],
                "localtz_end_at": "2024-06-12T13:51:40+03:00",
                "localtz_deleted_at": "2024-06-19T20:33:32+03:00",
                "localtz_created_at": "2024-06-11T13:51:40+03:00",
                "localtz_updated_at": "2024-06-11T13:51:40+03:00"
            },
            {
                "id": 575,
                "name": "А так выглядит завершенная задача",
                "priority_id": 0,
                "description": "Задача прошла весь цикл и теперь завершена",
                "end_at": "2024-06-12T10:51:40.000000Z",
                "status_id": 100,
                "kanban_status_id": 100,
                "project_id": 188,
                "slug": "511c514e-7bd4-4620-b01c-8877fb7d76e5",
                "deleted_at": null,
                "created_at": "2024-06-11T10:51:40.000000Z",
                "updated_at": "2024-06-11T10:51:40.000000Z",
                "creator_id": 18,
                "team_id": 35,
                "board_id": 175,
                "board_column_id": 854,
                "position": "6.000113250312500000000000000000",
                "picture": null,
                "performers": [
                    {
                        "id": 18,
                        "first_name": null,
                        "last_name": null,
                        "middle_name": null,
                        "email": "example@example.example",
                        "sex": null,
                        "created_at": "2024-06-11T10:51:38.000000Z",
                        "last_activity": "2024-06-19T17:33:31.000000Z",
                        "currency_id": 1,
                        "position": null,
                        "full_name": "example",
                        "full_name_short": "example",
                        "isonline": true,
                        "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                        "pivot": {
                            "task_id": 575,
                            "user_id": 18
                        },
                        "localtz_created_at": "2024-06-11T13:51:38+03:00",
                        "localtz_updated_at": "2024-06-19T20:33:31+03:00"
                    }
                ],
                "media": [],
                "comments": [],
                "tags": [],
                "timer": null,
                "subtasks": [],
                "recurring": null,
                "reminder": null,
                "custom_fields": [],
                "localtz_end_at": "2024-06-12T13:51:40+03:00",
                "localtz_deleted_at": "2024-06-19T20:33:32+03:00",
                "localtz_created_at": "2024-06-11T13:51:40+03:00",
                "localtz_updated_at": "2024-06-11T13:51:40+03:00"
            }
        ],
        "options": {
            "performers": [
                {
                    "id": 18,
                    "first_name": null,
                    "last_name": null,
                    "middle_name": null,
                    "email": "example@example.example",
                    "sex": null,
                    "created_at": "2024-06-11T10:51:38.000000Z",
                    "last_activity": "2024-06-19T17:33:31.000000Z",
                    "currency_id": 1,
                    "position": null,
                    "full_name": "example",
                    "full_name_short": "example",
                    "isonline": true,
                    "avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                    "localtz_created_at": "2024-06-11T13:51:38+03:00",
                    "localtz_updated_at": "2024-06-19T20:33:31+03:00"
                }
            ],
            "tags": [
                {
                    "id": 149,
                    "name": "Первая метка",
                    "color": "#E4BF00",
                    "user_id": 18,
                    "slug": "8e70e86d-c96c-4ef1-91c0-2ee021936b60",
                    "created_at": "2024-06-17T11:34:43.000000Z",
                    "updated_at": "2024-06-17T11:34:43.000000Z",
                    "team_id": 35,
                    "bg_color": "#FFFAE9",
                    "model_type": "App\\Models\\Task",
                    "position": "0.000113250312500000000000000000"
                }
            ],
            "priorities": [
                3,
                1,
                0
            ],
            "statuses": [
                {
                    "id": 851,
                    "name": "Сделать",
                    "type": "new",
                    "ids": [
                        851
                    ]
                },
                {
                    "id": 853,
                    "name": "На проверке",
                    "type": null,
                    "ids": [
                        853
                    ]
                },
                {
                    "id": 854,
                    "name": "Завершено",
                    "type": "completed",
                    "ids": [
                        854
                    ]
                }
            ]
        }
    },
    "message": "success"
}

Получить задачи для доски

PATCH
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/boards/{board_slug}
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248
board_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/boards/d823e13a-b255-431e-b425-6c211c038248"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "Доска (EDITED)"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "id": 186,
        "slug": "1cfdd132-41ad-48d5-89c2-4cce3d8fafb7",
        "name": "Вторая доска (Edited)",
        "order": 0,
        "project_id": 188,
        "team_id": 35,
        "created_at": "2024-06-19T17:32:53.000000Z",
        "updated_at": "2024-06-19T17:34:04.000000Z"
    },
    "message": "success"
}

Удалить доску проекта

DELETE
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/boards/{board_slug}
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248
board_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/boards/d823e13a-b255-431e-b425-6c211c038248"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": null,
    "message": "success"
}

Изменить порядок статусов доски

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/boards/{board_slug}/columns/change-position
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248
board_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/boards/d823e13a-b255-431e-b425-6c211c038248/columns/change-position"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "columns": [
        1,
        2,
        3
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": null,
    "message": "success"
}

Получить файлы проекта

GET
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/media
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248
Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/media"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": {
        "medias": [
            {
                "id": 457,
                "name": "Мой первый блокнот в O!task",
                "parent_id": 418,
                "type": "file",
                "ordering": null,
                "model_type": "App\\Models\\UserTeam",
                "model_id": 35,
                "extension": "pdf",
                "user_id": 18,
                "collection": null,
                "tag": null,
                "thumbnails": [],
                "width": null,
                "height": null,
                "src": "6415652e-9d71-494c-8065-e80a52bd8411.pdf",
                "mimes": "application/pdf",
                "disk": "yandexcloud",
                "size": 878473,
                "folder": "/uploads/filemanagers/00819fb6-1068-4588-9631-f3c8b7063661/ws-projects-35/b5fad061-ef75-487c-b2b5-2086581c368a/",
                "storage": "local",
                "storage_data": null,
                "slug": "c5ae7d63-cd0a-43f7-95ac-4e89bfc928f6",
                "created_at": "2024-06-19T17:30:43.000000Z",
                "updated_at": "2024-06-19T17:30:43.000000Z",
                "webp": null,
                "size_human": {
                    "B": {
                        "count": "878473",
                        "text": {
                            "ru": {
                                "short": "Б",
                                "long": "Байт"
                            },
                            "en": {
                                "short": "B",
                                "long": "Bytes"
                            }
                        }
                    },
                    "KB": {
                        "count": "857,88",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    },
                    "MB": {
                        "count": "0,84",
                        "text": {
                            "ru": {
                                "short": "МБ",
                                "long": "Мегабайт"
                            },
                            "en": {
                                "short": "MB",
                                "long": "Megabytes"
                            }
                        }
                    },
                    "GB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ГБ",
                                "long": "Гигабайт"
                            },
                            "en": {
                                "short": "GB",
                                "long": "Gigabytes"
                            }
                        }
                    },
                    "TB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ТБ",
                                "long": "Терабай"
                            },
                            "en": {
                                "short": "TB",
                                "long": "terabytes"
                            }
                        }
                    },
                    "human": {
                        "count": "857,88",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    }
                },
                "author": "example",
                "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                "previewImage": null,
                "localtz_created_at": "2024-06-19T20:30:43+03:00",
                "localtz_updated_at": "2024-06-19T20:30:43+03:00"
            }
        ],
        "miniMedia": [
            {
                "id": 457,
                "name": "Мой первый блокнот в O!task",
                "parent_id": 418,
                "type": "file",
                "ordering": null,
                "model_type": "App\\Models\\UserTeam",
                "model_id": 35,
                "extension": "pdf",
                "user_id": 18,
                "collection": null,
                "tag": null,
                "thumbnails": [],
                "width": null,
                "height": null,
                "src": "6415652e-9d71-494c-8065-e80a52bd8411.pdf",
                "mimes": "application/pdf",
                "disk": "yandexcloud",
                "size": 878473,
                "folder": "/uploads/filemanagers/00819fb6-1068-4588-9631-f3c8b7063661/ws-projects-35/b5fad061-ef75-487c-b2b5-2086581c368a/",
                "storage": "local",
                "storage_data": null,
                "slug": "c5ae7d63-cd0a-43f7-95ac-4e89bfc928f6",
                "created_at": "2024-06-19T17:30:43.000000Z",
                "updated_at": "2024-06-19T17:30:43.000000Z",
                "webp": null,
                "size_human": {
                    "B": {
                        "count": "878473",
                        "text": {
                            "ru": {
                                "short": "Б",
                                "long": "Байт"
                            },
                            "en": {
                                "short": "B",
                                "long": "Bytes"
                            }
                        }
                    },
                    "KB": {
                        "count": "857,88",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    },
                    "MB": {
                        "count": "0,84",
                        "text": {
                            "ru": {
                                "short": "МБ",
                                "long": "Мегабайт"
                            },
                            "en": {
                                "short": "MB",
                                "long": "Megabytes"
                            }
                        }
                    },
                    "GB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ГБ",
                                "long": "Гигабайт"
                            },
                            "en": {
                                "short": "GB",
                                "long": "Gigabytes"
                            }
                        }
                    },
                    "TB": {
                        "count": "0,00",
                        "text": {
                            "ru": {
                                "short": "ТБ",
                                "long": "Терабай"
                            },
                            "en": {
                                "short": "TB",
                                "long": "terabytes"
                            }
                        }
                    },
                    "human": {
                        "count": "857,88",
                        "text": {
                            "ru": {
                                "short": "KB",
                                "long": "Килобайт"
                            },
                            "en": {
                                "short": "KB",
                                "long": "Kilobytes"
                            }
                        }
                    }
                },
                "author": "example",
                "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                "previewImage": null,
                "localtz_created_at": "2024-06-19T20:30:43+03:00",
                "localtz_updated_at": "2024-06-19T20:30:43+03:00"
            }
        ],
        "meta": {
            "breadcrumbs": [],
            "folder": {
                "id": 418,
                "name": "Мой первый проект в O!task (демо)",
                "parent_id": 416,
                "type": "folder",
                "ordering": null,
                "model_type": "App\\Models\\UserTeam",
                "model_id": 35,
                "extension": null,
                "user_id": 18,
                "collection": null,
                "tag": null,
                "thumbnails": [],
                "width": null,
                "height": null,
                "src": "00819fb6-1068-4588-9631-f3c8b7063661",
                "mimes": null,
                "disk": "yandexcloud",
                "size": null,
                "folder": "/uploads/filemanagers/00819fb6-1068-4588-9631-f3c8b7063661/ws-projects-35/b5fad061-ef75-487c-b2b5-2086581c368a/",
                "storage": "local",
                "storage_data": null,
                "slug": "b5fad061-ef75-487c-b2b5-2086581c368a",
                "created_at": "2024-06-11T10:51:39.000000Z",
                "updated_at": "2024-06-11T10:51:39.000000Z",
                "webp": null,
                "size_human": [],
                "author": "example",
                "author_avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
                "previewImage": null,
                "localtz_created_at": "2024-06-11T13:51:39+03:00",
                "localtz_updated_at": "2024-06-11T13:51:39+03:00"
            }
        }
    },
    "message": "success"
}

Создать папку в файлах проекта

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/media/create-folder
Требуется аутентификация

Заголовки

Authorization
Example:
Bearer {YOUR_AUTH_KEY}
Content-Type
Example:
application/json
Accept
Example:
application/json

Параметры URL

ws_slug
string
required

Slug пространства

Example:
d823e13a-b255-431e-b425-6c211c038248
project_slug
string
required

Slug проекта

Example:
d823e13a-b255-431e-b425-6c211c038248

Параметры тела запроса

Пример запроса:
const url = new URL(
    "https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/media/create-folder"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "currentFolder": "d823e13a-b255-431e-b425-6c211c038248",
    "folderNew": "et"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
Пример ответа:
{
    "success": true,
    "data": null,
    "message": "success"
}

Скачать файлы/папки из проекта

POST
https://api.otask.ru
/api/v1/ws/{ws_slug}/projects/{project_slug}/media/mediaDownloadGenerate
Требуется аутентификация

Заголовки