Введение
Эта документация предназначена для предоставления всей необходимой информации для работы с нашим API.
Аутентификация запросов
Чтобы аутентифицировать запросы, включите заголовок Authorization
со значением "Bearer {YOUR_AUTH_KEY}"
.
Все аутентифицированные конечные точки отмечены значком требуется аутентификация
в документации ниже.
Чтобы получить аунтификатор Вы можете сделать запрос на маршрут входа, если у Вас есть аккаунт, или зарегистрировать новый
Проекты
Получить проекты
Заголовки
Параметры URL
Slug пространства
Параметры запроса
ID метки проекта или completed
, если нужно получить завершенные проекты
Поле для сортировки
name
amount
paid
end_at
status_id
author
Тип сортировки
desc
asc
Значение для поиска
Показывать ли регулярные проекты
ID участника проекта
ID клиента проекта
Номер страницы
Количество элементов на странице
Поля ответа
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
Заголовки
Параметры URL
Slug пространства
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
Заголовки
Параметры URL
Slug пространства
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"
}
Получить проекты сгруппированные по колонкам
Заголовки
Параметры URL
Slug пространства
Параметры запроса
id
метки или completed
для получения завершенных проектов
Поиск по названию
ID участника проекта
ID клиента
Тип группировки
managers
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"
}
Получить проекты для колонки
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
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"
}
Создать проект
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
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"
}
Экспорт проектов
Возвращает .csv файл
Заголовки
Параметры URL
Slug пространства
Параметры запроса
id
метки или completed
для получения завершенных проектов
Поиск по названию
ID участника проекта
ID клиента
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
Скачать пример файла для импорта проектов
Возвращает .csv файл
Заголовки
Параметры URL
Slug пространства
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
Импорт проектов
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
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
Обновить проект
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
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"
}
Изменить позицию проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
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"
}
Закрепить/открепить проект
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
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"
}
Изменить описание проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
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"
}
Прикрепить/открепить метку проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
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());
Переместить проект в колонку
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
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"
}
Удалить проект
Заголовки
Параметры URL
Slug пространства
Slug проекта
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"
}
Завершить/восстановить проект
Заголовки
Параметры URL
Slug пространства
Slug проекта
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"
}
Получить проект
Заголовки
Параметры URL
Slug пространства
Slug проекта
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"
}
Получить файлы проекта для сводки
Заголовки
Параметры URL
Slug пространства
Slug проекта
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"
}
Получить статистику по финансам проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
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"
}
Добавить участника в проект
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
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"
}
Удалить участника из проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
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"
}
Получить список досок проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры запроса
Slug доски, для которой будут получены задачи (Если не передано, то будут получены задачи для первой доски)
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"
}
Создать доску для проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
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"
}
Изменить позицию досок
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
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"
}
Получить задачи для доски
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug проекта
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"
}
Получить задачи для доски
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug проекта
Параметры тела запроса
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"
}
Удалить доску проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug проекта
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"
}
Изменить порядок статусов доски
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug проекта
Параметры тела запроса
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"
}
Получить файлы проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
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"
}
Создать папку в файлах проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
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"
}
Скачать файлы/папки из проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/media/mediaDownloadGenerate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"lists": [
"explicabo"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": "https://example.example/download/45187420-758b-46d3-984e-466d108f8533",
"message": "success"
}
Удалить папки/файлы проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/media/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"lists": [
"porro"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Получить файла папки проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug папки
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/media/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": {
"medias": [],
"miniMedia": [],
"meta": {
"breadcrumbs": [
{
"id": 415,
"name": "default",
"parent_id": null,
"type": "filemanager",
"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/ws-00819fb6-1068-4588-9631-f3c8b7063661/",
"storage": "local",
"storage_data": null,
"slug": "580d9b5b-c602-4fd2-9634-6f8d0db3e1a3",
"created_at": "2024-06-11T10:51:38.000000Z",
"updated_at": "2024-06-11T10:51:38.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:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
},
{
"id": 416,
"name": "Мои проекты",
"parent_id": 415,
"type": "folder",
"ordering": null,
"model_type": "App\\Models\\UserTeam",
"model_id": 35,
"extension": null,
"user_id": 18,
"collection": null,
"tag": "closed",
"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/",
"storage": "local",
"storage_data": null,
"slug": "ws-projects-35",
"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"
},
{
"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"
}
],
"folder": {
"id": 458,
"name": "Новая папка",
"parent_id": 418,
"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": "86f717cd-0325-44ee-9b80-eb8487ba0040",
"mimes": null,
"disk": "yandexcloud",
"size": null,
"folder": "/uploads/filemanagers/00819fb6-1068-4588-9631-f3c8b7063661/ws-projects-35/b5fad061-ef75-487c-b2b5-2086581c368a/86f717cd-0325-44ee-9b80-eb8487ba0040/",
"storage": "local",
"storage_data": null,
"slug": "86f717cd-0325-44ee-9b80-eb8487ba0040",
"created_at": "2024-06-19T17:35:47.000000Z",
"updated_at": "2024-06-19T17:35:47.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-19T20:35:47+03:00",
"localtz_updated_at": "2024-06-19T20:35:47+03:00"
}
}
},
"message": "success"
}
Скачать файл проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug файла/папки
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/media/d823e13a-b255-431e-b425-6c211c038248/download"
);
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": "https://example.example/download/92bfcb85-0a91-4611-afa0-10bcc31be3ff",
"message": "success"
}
Изменить имя файла/папки проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug файла/папки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/media/d823e13a-b255-431e-b425-6c211c038248/editname"
);
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": null,
"message": "success"
}
Загрузить файл в папку
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug папки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/media/d823e13a-b255-431e-b425-6c211c038248/upload"
);
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());
{
"success": true,
"data": {
"data": [
{
"name": "Мой первый блокнот в O!task (1)",
"extension": "pdf",
"mimes": "application/pdf",
"src": "d77e8278-5e65-4f8a-ac83-939949fcd873.pdf",
"parent_id": 418,
"user_id": 18,
"disk": "yandexcloud",
"type": "file",
"tag": null,
"size": 878473,
"width": null,
"height": null,
"collection": null,
"folder": "/uploads/filemanagers/00819fb6-1068-4588-9631-f3c8b7063661/ws-projects-35/b5fad061-ef75-487c-b2b5-2086581c368a/",
"model_id": 35,
"model_type": "App\\Models\\UserTeam",
"slug": "114dbbb3-7508-4d77-8c1f-a4d0b84577c3",
"updated_at": "2024-06-19T17:39:50.000000Z",
"created_at": "2024-06-19T17:39:50.000000Z",
"id": 459,
"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:39:50+03:00",
"localtz_updated_at": "2024-06-19T20:39:50+03:00"
}
],
"expended_storage": "2.17"
},
"message": "success"
}
Получить блокноты проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/notes"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"summary": 0
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"notes": [
{
"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-11T10:51:40.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-19T16:36:16.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-19T19:36:16+03:00"
},
"localtz_deleted_at": "2024-06-19T19:36:16+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
}
],
"total": 1
},
"message": "success"
}
Создать блокнот для проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/notes/create"
);
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": {
"note": {
"name": "Новый блокнот",
"description": null,
"user_id": 18,
"project_id": 188,
"slug": "a91b4c39-3e94-4df2-acce-c1bfaafcfb08",
"updated_at": "2024-06-19T16:38:03.000000Z",
"created_at": "2024-06-19T16:38:03.000000Z",
"id": 59,
"version": null,
"need_to_notify": 0,
"media": [],
"performers": [],
"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-11T10:51:40.000000Z",
"team_id": 35,
"completed_at": null,
"position": "0.000113250312499999999742671120",
"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-19T19:38:03+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-11T13:51:40+03:00"
},
"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-19T16:38:03.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-19T19:38:03+03:00"
},
"localtz_deleted_at": "2024-06-19T19:38:03+03:00",
"localtz_created_at": "2024-06-19T19:38:03+03:00",
"localtz_updated_at": "2024-06-19T19:38:03+03:00"
}
},
"message": "success"
}
Изменить порядок блокнотов
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/notes/update-list"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"notes": [
"sed"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Изменить блокнот
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug блокнота
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/notes/d823e13a-b255-431e-b425-6c211c038248/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Первый блокнот",
"description": "Описание блокнота"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"note": {
"id": 59,
"name": "Новый блокнот (Edited)",
"description": null,
"project_id": 188,
"user_id": 18,
"slug": "a91b4c39-3e94-4df2-acce-c1bfaafcfb08",
"deleted_at": null,
"created_at": "2024-06-19T16:38:03.000000Z",
"updated_at": "2024-06-19T16:38:51.000000Z",
"position": 1,
"is_pinned": false,
"version": {
"id": 36169,
"name": "Новый блокнот (Edited)",
"description": null,
"note_id": 59,
"user_id": 18,
"slug": "f1bd7f58-ea9f-45a2-a495-0cf863498612",
"deleted_at": null,
"created_at": "2024-06-19T16:38:51.000000Z",
"updated_at": "2024-06-19T16:38:51.000000Z",
"localtz_deleted_at": "2024-06-19T19:38:51+03:00",
"localtz_created_at": "2024-06-19T19:38:51+03:00",
"localtz_updated_at": "2024-06-19T19:38:51+03:00"
},
"need_to_notify": 0,
"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-19T16:38: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-19T19:38:51+03:00"
},
"media": [],
"performers": [],
"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-11T10:51:40.000000Z",
"team_id": 35,
"completed_at": null,
"position": "0.000113250312499999999742671120",
"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-19T19:38: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-11T13:51:40+03:00"
},
"localtz_deleted_at": "2024-06-19T19:38:51+03:00",
"localtz_created_at": "2024-06-19T19:38:03+03:00",
"localtz_updated_at": "2024-06-19T19:38:51+03:00"
}
},
"message": "success"
}
Удалить блокнот
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug блокнота
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/notes/d823e13a-b255-431e-b425-6c211c038248/destroy"
);
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"
}
Закрепить/открепить блокнот
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug блокнота
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/notes/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"
}
Экспорт блокнота в PDF
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug блокнота
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/notes/d823e13a-b255-431e-b425-6c211c038248/pdf/download"
);
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": "https://example.example/download/340a7302-654b-431f-b051-efc52ed4f341",
"message": "success"
}
Получить приложения проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры запроса
Получить первые 3 приложения
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/applications"
);
const params = {
"summary": "0",
};
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": {
"applications": [
{
"id": 41,
"name": "Google документ в O!task",
"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-11T10:51:40.000000Z",
"position": 0,
"is_pinned": false
}
]
},
"message": "success"
}
Создать приложение для проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/applications"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Таблица",
"type": "figma",
"href": "aliquid",
"code": "ex"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"application": {
"type": "google-documents",
"user_id": 18,
"name": "Новый документ",
"href": "https://docs.google.com/document/d/1K6SSk64f9Hb189tHAvIydSlruuLwz4E8lwBBvhVdORk/edit?usp=sharing",
"project_id": 188,
"slug": "6034eaac-c26a-4f12-898b-baf71fee27e6",
"updated_at": "2024-06-19T17:15:14.000000Z",
"created_at": "2024-06-19T17:15:14.000000Z",
"id": 45
}
},
"message": "success"
}
Изменить порядок приложений проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/applications/change-position"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"applications": [
"quam"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Удалить приложение проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug приложения
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/applications/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"
}
Изменить приложение проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug приложения
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/applications/d823e13a-b255-431e-b425-6c211c038248"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Таблица (EDITED)",
"href": "qui",
"code": "blanditiis"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"application": {
"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
}
},
"message": "success"
}
Закрепить/открепить приложение проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Slug приложения
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/applications/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"
}
Получить список задач проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры запроса
ID метки
ID исполнителя или no_performer
ID приоритета
Список ID статусов или archive
Страница
Элементов на странице
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/tasks"
);
const params = {
"tag": "1",
"performer": "1",
"priority": "1",
"column_value[0]": "1",
"column_value[1]": "2",
"column_value[2]": "3",
"page": "1",
"per_page": "10",
};
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": {
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 10,
"to": 4,
"total": 4
},
"tasks": [
{
"id": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:10:21.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 852,
"position": "1.000113250312500000000000000000",
"type": null,
"comments_count": 2,
"num_comments": 2,
"picture": "https://example.example/storage/uploads/tasks/bbb0c5be-9a51-4198-b1d1-23616e8cb08b.960c2e1b3fd9efd9e90e4dd52feb9b40.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-19T18:23:43.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-19T21:23:43+03:00"
}
],
"media": [
{
"id": 465,
"name": "Мой первый блокнот в O!task (1) (1)",
"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": "2694ab11-f24a-48b7-8b05-4b86b8a40d4d.pdf",
"mimes": "application/pdf",
"disk": "yandexcloud",
"size": 878473,
"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": "17359295-97eb-42e7-bc07-92eef7158ae0",
"created_at": "2024-06-19T18:22:49.000000Z",
"updated_at": "2024-06-19T18:22:49.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-19T21:22:49+03:00",
"localtz_updated_at": "2024-06-19T21:22:49+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-19T18:23:43.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-19T21:23:43+03:00"
},
"localtz_deleted_at": "2024-06-19T21:23:43+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-19T18:23:43.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-19T21:23:43+03:00"
},
"localtz_deleted_at": "2024-06-19T21:23:43+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": {
"id": 35,
"model_type": "App\\Models\\Task",
"model_id": 569,
"slug": "f5fe8e1f-7006-4157-831c-9ec5492e0ba8",
"seconds": 3,
"stopped": true,
"user_id": 18,
"created_at": "2024-06-19T18:13:55.000000Z",
"updated_at": "2024-06-19T18:13:58.000000Z",
"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-19T18:23:43.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-19T21:23:43+03:00"
},
"localtz_created_at": "2024-06-19T21:13:55+03:00",
"localtz_updated_at": "2024-06-19T21:13:58+03:00"
},
"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-19T21:23:43+03:00",
"localtz_deleted_at": "2024-06-19T21:23:43+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-19T21:23:43+03:00",
"localtz_deleted_at": "2024-06-19T21:23:43+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-19T21:23:43+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
}
],
"recurring": null,
"reminder": null,
"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-19T18:23:43.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-19T21:23:43+03:00"
},
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:23:44+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:10:21+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-19T18:23:43.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-19T21:23:43+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-19T18:23:43.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-19T21:23:43+03:00"
},
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T21:23:44+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-19T18:23:43.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-19T21:23:43+03:00"
}
],
"media": [],
"comments": [],
"tags": [],
"timer": {
"id": 36,
"model_type": "App\\Models\\Task",
"model_id": 574,
"slug": "3537b0ff-e252-426d-9c93-ffd6d75836a5",
"seconds": 0,
"stopped": true,
"user_id": 18,
"created_at": "2024-06-19T18:19:09.000000Z",
"updated_at": "2024-06-19T18:19:09.000000Z",
"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-19T18:23:43.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-19T21:23:43+03:00"
},
"localtz_created_at": "2024-06-19T21:19:09+03:00",
"localtz_updated_at": "2024-06-19T21:19:09+03:00"
},
"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-19T18:23:43.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-19T21:23:43+03:00"
},
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T21:23:44+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-19T18:23:43.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-19T21:23:43+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-19T18:23:43.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-19T21:23:43+03:00"
},
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T21:23:44+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
}
],
"performers_options": [
{
"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-19T18:23:43.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-19T21:23:43+03:00"
}
],
"priorities_ids": [
3,
1,
0
],
"statuses_options": [
{
"name": "Сделать",
"value": [
851
]
},
{
"name": "В работе",
"value": [
852
]
},
{
"name": "На проверке",
"value": [
853
]
},
{
"name": "Завершено",
"value": [
854
]
},
{
"name": "В архиве",
"value": "archive"
}
],
"tags_options": [
{
"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"
}
]
},
"message": "success"
}
Удалить задачи проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/tasks/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
1,
2,
3
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Получить список платежей проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры запроса
asc
desc
amount
payment_date
Тип платежа
100
200
ID категории
От
До
Получить опции
Страница
Элементов на странице
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/payments"
);
const params = {
"sort_type": "desc",
"sort_field": "amount",
"type_id": "100",
"category_id": "15",
"start_at": "15.06.2024",
"end_at": "19.06.2024",
"with_options": "1",
"page": "1",
"per_page": "10",
};
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": {
"payments": [
{
"id": 212,
"amount": "10.00",
"payment_date": "2024-06-19T17:31:00.000000Z",
"type_id": 100,
"description": null,
"user_id": 18,
"client_id": 89,
"project_id": 188,
"member_id": null,
"slug": "177e2172-0801-44a0-9153-966ebc2c78f2",
"created_at": "2024-06-19T17:31:22.000000Z",
"updated_at": "2024-06-19T17:31:22.000000Z",
"team_id": 35,
"category_id": null,
"member": 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:40:34.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:40:34+03:00"
},
"client": {
"id": 89,
"first_name": "ОАО «Ромашка»",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": "8 909 777 77 77",
"slug": "55fdd859-c362-4ac3-8014-6baf4d581cfc",
"team_id": 35,
"full_name": "ОАО «Ромашка»",
"income": 20010,
"localtz_deleted_at": "2024-06-19T20:40:34+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"category": null,
"localtz_payment_date": "2024-06-19T20:31:00+03:00",
"localtz_created_at": "2024-06-19T20:31:22+03:00",
"localtz_updated_at": "2024-06-19T20:31:22+03:00"
},
{
"id": 195,
"amount": "70000.00",
"payment_date": "2024-06-11T10:51:49.000000Z",
"type_id": 200,
"description": null,
"user_id": 18,
"client_id": null,
"project_id": 188,
"member_id": null,
"slug": "1c547ac7-aeba-4819-9991-ac08eaee18b1",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 138,
"member": 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:40:34.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:40:34+03:00"
},
"client": null,
"category": {
"id": 138,
"name": "Зарплаты",
"type_id": 200,
"order": 6,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:49+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 193,
"amount": "20000.00",
"payment_date": "2024-06-11T10:51:47.000000Z",
"type_id": 100,
"description": null,
"user_id": 18,
"client_id": 89,
"project_id": 188,
"member_id": null,
"slug": "3872bf16-c2d6-4df4-85c1-f8002768dc26",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 133,
"member": 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:40:34.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:40:34+03:00"
},
"client": {
"id": 89,
"first_name": "ОАО «Ромашка»",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": "8 909 777 77 77",
"slug": "55fdd859-c362-4ac3-8014-6baf4d581cfc",
"team_id": 35,
"full_name": "ОАО «Ромашка»",
"income": 20010,
"localtz_deleted_at": "2024-06-19T20:40:34+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"category": {
"id": 133,
"name": "Разработка сайтов",
"type_id": 100,
"order": 1,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:47+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 190,
"amount": "12300.00",
"payment_date": "2024-06-11T10:51:44.000000Z",
"type_id": 200,
"description": null,
"user_id": 18,
"client_id": null,
"project_id": 188,
"member_id": null,
"slug": "85e304e5-af44-4e0e-bc6a-d71ac581a950",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 139,
"member": 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:40:34.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:40:34+03:00"
},
"client": null,
"category": {
"id": 139,
"name": "Сервисы доставки",
"type_id": 200,
"order": 7,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:44+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 189,
"amount": "120000.00",
"payment_date": "2024-06-11T10:51:43.000000Z",
"type_id": 100,
"description": null,
"user_id": 18,
"client_id": 90,
"project_id": 188,
"member_id": null,
"slug": "b0e021d6-ca2f-40f2-ac4c-5977ef2cf507",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 135,
"member": 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:40:34.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:40:34+03:00"
},
"client": {
"id": 90,
"first_name": "ИП Сидоров В.А",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": null,
"slug": "3ecf99d9-7a90-44e7-be51-c916192bb69c",
"team_id": 35,
"full_name": "ИП Сидоров В.А",
"income": 120000,
"localtz_deleted_at": "2024-06-19T20:40:34+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"category": {
"id": 135,
"name": "Монетизация YouTube-канала",
"type_id": 100,
"order": 3,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:43+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 186,
"amount": "134000.00",
"payment_date": "2024-06-11T10:51:40.000000Z",
"type_id": 100,
"description": null,
"user_id": 18,
"client_id": 86,
"project_id": 188,
"member_id": null,
"slug": "53ac3bdd-3e2f-445a-b57e-1599eb25b79b",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 132,
"member": 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:40:34.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:40:34+03:00"
},
"client": {
"id": 86,
"first_name": "O!task",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": null,
"slug": "ab1de9d8-d550-4a05-81ba-5c0f059881fb",
"team_id": 35,
"full_name": "O!task",
"income": 134000,
"localtz_deleted_at": "2024-06-19T20:40:34+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"category": {
"id": 132,
"name": "Консультации",
"type_id": 100,
"order": 0,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:40+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
}
],
"options": {
"categories": [
{
"id": 132,
"name": "Консультации",
"type_id": 100,
"order": 0,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 133,
"name": "Разработка сайтов",
"type_id": 100,
"order": 1,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 135,
"name": "Монетизация YouTube-канала",
"type_id": 100,
"order": 3,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 138,
"name": "Зарплаты",
"type_id": 200,
"order": 6,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 139,
"name": "Сервисы доставки",
"type_id": 200,
"order": 7,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
}
]
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 20,
"to": 6,
"total": 6
}
},
"message": "success"
}
Создать платеж для проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/payments/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount": 500.39999999999998,
"category_id": 9,
"client_id": 15,
"description": "Veniam in qui nesciunt incidunt sunt in ipsam.",
"member_id": 13,
"payment_date": "18.06.2024 - 16:07",
"type_id": 200
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"row": {
"amount": "500.00",
"description": null,
"payment_date": "2024-06-19T17:41:00.000000Z",
"type_id": 100,
"category_id": 133,
"client_id": 89,
"user_id": 18,
"member_id": null,
"project_id": 188,
"team_id": 35,
"slug": "d4dcb356-53b3-409f-bb38-5990032fd867",
"updated_at": "2024-06-19T17:41:43.000000Z",
"created_at": "2024-06-19T17:41:43.000000Z",
"id": 214,
"member": null,
"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:41:43+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"
},
"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:41:43.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:41:43+03:00"
},
"category": {
"id": 133,
"name": "Разработка сайтов",
"type_id": 100,
"order": 1,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"client": {
"id": 89,
"first_name": "ОАО «Ромашка»",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": "8 909 777 77 77",
"slug": "55fdd859-c362-4ac3-8014-6baf4d581cfc",
"team_id": 35,
"full_name": "ОАО «Ромашка»",
"income": 20510,
"localtz_deleted_at": "2024-06-19T20:41:43+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"localtz_payment_date": "2024-06-19T20:41:00+03:00",
"localtz_created_at": "2024-06-19T20:41:43+03:00",
"localtz_updated_at": "2024-06-19T20:41:43+03:00"
}
},
"message": "success"
}
Создать платеж для проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/payments/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"lists": [
1,
2,
3
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Изменить платеж проекта
Заголовки
Параметры URL
Slug пространства
Slug проекта
The slug of the payment.
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/projects/d823e13a-b255-431e-b425-6c211c038248/payments/ut/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount": 500.39999999999998,
"category_id": 4,
"client_id": 10,
"description": "Qui et fugiat corrupti quia dolores.",
"member_id": 13,
"payment_date": "18.06.2024 - 16:07",
"type_id": 200
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"row": {
"id": 195,
"amount": "70000.00",
"payment_date": "2024-06-11T10:51:00.000000Z",
"type_id": 200,
"description": null,
"user_id": 18,
"client_id": null,
"project_id": 188,
"member_id": null,
"slug": "1c547ac7-aeba-4819-9991-ac08eaee18b1",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-19T17:42:39.000000Z",
"team_id": 35,
"category_id": 138,
"member": null,
"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:42: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-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T20:22:44+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:42:39.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:42:39+03:00"
},
"category": {
"id": 138,
"name": "Зарплаты",
"type_id": 200,
"order": 6,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"client": null,
"localtz_payment_date": "2024-06-11T13:51:00+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-19T20:42:39+03:00"
}
},
"message": "success"
}
Задачи
Получить канбан задач
Заголовки
Параметры URL
Slug пространства
Параметры запроса
Тип
status
performer
priority
tag
date
Slug проекта
ID исполнителя или no_performer
, если нужно получить задачи без исполнителей
ID метки
Приоритет 0 - Без приоритета, 1 - Критический, 2 - Низкий, 3 - Средний, 4 - Высокий
0
1
2
3
4
Массив id статусов
Подзадачи, как отдельные задачи
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/kanbans"
);
const params = {
"type": "tag",
"project": "et",
"performer": "blanditiis",
"tag": "17",
"priority": "4",
"status[0]": "1",
"status[1]": "2",
"status[2]": "3",
"separate_subtasks": "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: "GET",
headers,
}).then(response => response.json());
{
"success": true,
"data": {
"columns": [
{
"id": 851,
"board_id": 175,
"name": "Сделать",
"color": "#32c3e3",
"has_more_tasks": false,
"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"
}
],
"tasks_count": 2
},
{
"id": 852,
"board_id": 175,
"name": "В работе",
"color": "#ffa639",
"has_more_tasks": false,
"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"
}
],
"tasks_count": 0
},
{
"id": 853,
"board_id": 175,
"name": "На проверке",
"color": "#ff576a",
"has_more_tasks": false,
"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"
}
],
"tasks_count": 1
},
{
"id": 854,
"board_id": 175,
"name": "Завершено",
"color": "#42b525",
"has_more_tasks": false,
"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_count": 1
}
],
"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-19T16:24:01.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-19T19:24:01+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-19T16:24:01.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-19T19:24:01+03:00"
},
"localtz_deleted_at": "2024-06-19T19:24:01+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-19T16:24:01.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-19T19:24:01+03:00"
},
"localtz_deleted_at": "2024-06-19T19:24:01+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-19T19:24:01+03:00",
"localtz_deleted_at": "2024-06-19T19:24:01+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-19T19:24:01+03:00",
"localtz_deleted_at": "2024-06-19T19:24:01+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-19T19:24:01+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-19T19:24:01+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-19T16:24:01.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-19T19:24:01+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-19T19:24:01+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-19T16:24:01.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-19T19:24:01+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-19T19:24:01+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-19T16:24:01.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-19T19:24:01+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-19T19:24:01+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-19T16:24:01.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-19T19:24:01+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"
}
Получить метки
Заголовки
Параметры URL
Slug пространства
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/kanbans/tags"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Получить еще задачи в колонку канбана
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/kanbans/tasks"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"except_ids": [
1,
2,
3
],
"type": "priority",
"value": "magni",
"project": "sit",
"performer": 4,
"tag": 12,
"priority": 16,
"status": [
"ut"
],
"separate_subtasks": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"tasks": [
{
"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-19T16:28:54.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-19T19:28:54+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-19T19:28:54+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-17T13:21:12+03:00"
}
],
"has_more_tasks": false
},
"message": "success"
}
Получить список задач
Заголовки
Параметры URL
Slug пространства
Параметры запроса
Номер страницы
Подзадачи как отдельные задачи
Slug проекта
ID исполнителя или no_performer
ID метки
ID приоритета
Массив ID статусов или archive
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks"
);
const params = {
"page": "13",
"separate_subtasks": "0",
"project": "explicabo",
"performer": "perspiciatis",
"tag": "15",
"priority": "4",
"column_value[0]": "1",
"column_value[1]": "2",
"column_value[2]": "3",
};
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": {
"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",
"type": "new",
"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:56:27.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:56:27+03:00"
}
],
"media": [],
"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:56:27.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:56:27+03:00"
},
"localtz_deleted_at": "2024-06-19T20:56:27+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:56:27.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:56:27+03:00"
},
"localtz_deleted_at": "2024-06-19T20:56:27+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:56:27+03:00",
"localtz_deleted_at": "2024-06-19T20:56:27+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:56:27+03:00",
"localtz_deleted_at": "2024-06-19T20:56:27+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:56:27+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:56:27.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:56:27+03:00"
},
"localtz_end_at": "2024-06-12T13:51:38+03:00",
"localtz_deleted_at": "2024-06-19T20:56:27+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",
"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:56:27.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:56:27+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:56:27.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:56:27+03:00"
},
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T20:56:27+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,
"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:56:27.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:56:27+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:56:27.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:56:27+03:00"
},
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T20:56:27+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",
"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:56:27.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:56:27+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:56:27.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:56:27+03:00"
},
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T20:56:27+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": 20,
"to": 4,
"total": 4
},
"projects_options": [
{
"id": 188,
"name": "Мой первый проект в O!task (демо)",
"slug": "b5fad061-ef75-487c-b2b5-2086581c368a",
"end_at_regular": null,
"localtz_start_at": "2024-06-19T20:56:27+03:00",
"localtz_deleted_at": "2024-06-19T20:56:27+03:00",
"localtz_end_at": "2024-06-19T20:56:27+03:00",
"localtz_end_at_regular": "2024-06-19T20:56:27+03:00",
"localtz_created_at": "2024-06-19T20:56:27+03:00",
"localtz_updated_at": "2024-06-19T20:56:27+03:00"
}
],
"tags_options": [
{
"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"
}
],
"performers_options": [
{
"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:56:27.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:56:27+03:00"
}
],
"priorities_ids": [
3,
1,
0
],
"statuses_options": [
{
"name": "Сделать",
"value": [
851
]
},
{
"name": "На проверке",
"value": [
853
]
},
{
"name": "Завершено",
"value": [
854
]
}
],
"has_tasks": true
},
"message": "success"
}
Получить недельный календарь
Заголовки
Параметры URL
Slug пространства
Параметры запроса
Дата начала календаря
Slug проекта
ID проекта
ID исполнителя или no_performer
ID метки
ID приоритета
Массив ID статусов
Подзадачи, как отдельные задачи
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/calendar"
);
const params = {
"start_date": "2024-06-17T14:00:32+03:00",
"project": "da86a512-e3c6-4e75-9c82-50fa7cbd83a0",
"project_filter": "1",
"performer": "1",
"tag": "1",
"priority": "1",
"status[0]": "1",
"separate_subtasks": "0",
};
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": {
"days": [
{
"date": null,
"has_more_tasks": false,
"tasks_count": 0
},
{
"date": "2024-06-19T00:00:00+03:00",
"has_more_tasks": false,
"tasks_count": 0
},
{
"date": "2024-06-20T00:00:00+03:00",
"has_more_tasks": false,
"tasks_count": 0
},
{
"date": "2024-06-21T00:00:00+03:00",
"has_more_tasks": false,
"tasks_count": 0
},
{
"date": "2024-06-22T00:00:00+03:00",
"has_more_tasks": false,
"tasks_count": 0
},
{
"date": "2024-06-23T00:00:00+03:00",
"has_more_tasks": false,
"tasks_count": 0
},
{
"date": "2024-06-24T00:00:00+03:00",
"has_more_tasks": false,
"tasks_count": 0
},
{
"date": "2024-06-25T00:00:00+03:00",
"has_more_tasks": false,
"tasks_count": 0
}
],
"tasks": [],
"options": {
"performers": [],
"tags": [],
"priorities": [],
"statuses": []
}
},
"message": "success"
}
Получить еще задачи в колонку недельного календаря
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/calendar/days"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"except_ids": [
1,
2,
3
],
"date": "2024-06-17T00:00:00+03:00",
"project": "da86a512-e3c6-4e75-9c82-50fa7cbd83a0",
"project_filter": 1,
"performer": "1",
"tag": 1,
"priority": 1,
"status": [
1
],
"separate_subtasks": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"tasks": [
{
"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": "http://api.otask.gq/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:59:15.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",
"pivot": {
"task_id": 573,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T20:59:15+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:59:15+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:59:15.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",
"pivot": {
"task_id": 574,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T20:59:15+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:59:15+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
}
],
"has_more_tasks": false
},
"message": "success"
}
Получить календарь
Заголовки
Параметры URL
Slug пространства
Параметры запроса
Slug проекта
ID проекта
ID исполнителя или no_performer
ID метки
Массив ID статусов
ID приоритета
Подзадачи, как отдельные задачи
Дата начала календаря
Получить задачи без даты
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/month-calendar"
);
const params = {
"project": "da86a512-e3c6-4e75-9c82-50fa7cbd83a0",
"project_filter": "1",
"performer": "1",
"tag": "1",
"status[0]": "1",
"priority": "1",
"separate_subtasks": "0",
"start_date": "2024-06-01T00:00:00+03:00",
"with_without_date": "0",
};
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": {
"column": {
"id": null,
"has_more_pages": false,
"tasks_count": 0
},
"days": [
{
"date": "2024-06-01T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-02T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-03T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-04T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-05T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-06T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-07T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-08T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-09T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-10T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-11T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-12T00:00:00+03:00",
"has_more_pages": false,
"tasks": [
569,
573,
574
]
},
{
"date": "2024-06-13T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-14T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-15T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-16T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-17T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-18T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-19T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-20T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-21T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-22T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-23T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-24T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-25T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-26T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-27T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-28T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-29T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
},
{
"date": "2024-06-30T00:00:00+03:00",
"has_more_pages": false,
"tasks": []
}
],
"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-19T18:00:12.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-19T21:00:12+03:00"
}
],
"media": [],
"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-19T18:00:12.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-19T21:00:12+03:00"
},
"localtz_deleted_at": "2024-06-19T21:00:13+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-19T18:00:12.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-19T21:00:12+03:00"
},
"localtz_deleted_at": "2024-06-19T21:00:13+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-19T21:00:13+03:00",
"localtz_deleted_at": "2024-06-19T21:00:13+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-19T21:00:13+03:00",
"localtz_deleted_at": "2024-06-19T21:00:13+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-19T21:00:13+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-19T21:00:13+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-19T18:00:12.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-19T21:00:12+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-19T21:00:13+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-19T18:00:12.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-19T21:00:12+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-19T21:00:13+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-19T18:00:12.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-19T21:00:12+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"
}
Получить еще задачи для дня в календаре
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/month-calendar/days"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"project": "da86a512-e3c6-4e75-9c82-50fa7cbd83a0",
"except_ids": [
1,
2,
3
],
"date": "2024-06-17T00:00:00+03:00",
"project_filter": 1,
"performer": "1",
"tag": 1,
"status": [
1
],
"priority": 1,
"separate_subtasks": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"tasks": [
{
"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-19T18:02:22.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-19T21:02:22+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-19T21:02:22+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-19T18:02:22.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-19T21:02:22+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-19T21:02:22+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
}
]
},
"message": "success"
}
Создать задачу
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Первая задача",
"board_column_id": 8,
"board_id": 11,
"comment": "quisquam",
"description": "Et culpa ea voluptatem perspiciatis aut perferendis ad et.",
"end_at": "2024-06-18T07:00:00.000Z",
"priority_id": 17,
"project_id": 15,
"custom_fields": [
{
"id": 1,
"value": "Example value"
}
],
"files": [
{
"name": "124.pdf",
"temp_src": "DLuKWdN9nUm8wxoc89bl9qjb7QDNHOhZfQkn4H1V.pdf"
}
],
"performers": [
1,
2,
3
],
"tags": [
1,
2,
3
],
"subtasks": [
{
"id": null,
"end_at": "2024-06-18T07:00:00.000Z",
"is_completed": false,
"name": "Подзадача",
"performers": [
1,
2
]
}
],
"reminder_date": "18.06.2024 11:33",
"recurring": {
"skip_weekends": true,
"time": "07:00",
"timezone": "Europe\/Moscow",
"type": "every-day",
"value": "10"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"task": {
"name": "Новая задача",
"priority_id": 4,
"end_at": "2024-06-20T07:00:00.000000Z",
"description": "<p>Описание</p>",
"creator_id": 18,
"project_id": 188,
"board_id": 175,
"board_column_id": 851,
"position": 0.00011325031250009054,
"team_id": 35,
"slug": "2e44d1ab-f223-46c6-a3b4-78e026d6af79",
"updated_at": "2024-06-19T18:04:05.000000Z",
"created_at": "2024-06-19T18:04:05.000000Z",
"id": 599,
"num_comments": 1,
"picture": null,
"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": 599,
"field_id": 74,
"value": "100"
}
},
{
"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": 599,
"field_id": 77,
"value": true
}
}
],
"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": 599,
"tag_id": 149,
"taggable_type": "App\\Models\\Task"
}
}
],
"recurring": {
"id": 61,
"task_id": 599,
"type": "every-month",
"time": "07:00:00",
"skip_weekends": true,
"value": 1,
"next_replay": "2024-07-01 07:00:00",
"replayed_at": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"timezone": "Europe/Moscow"
},
"reminder": {
"id": 36,
"date": "2024-06-20 18:03:00",
"task_id": 599,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z"
},
"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-19T18:04:05.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": 599,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:04:05+03:00"
}
],
"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",
"managers": [],
"localtz_start_at": "2024-06-11T13:51:38+03:00",
"localtz_deleted_at": "2024-06-19T21:04:05+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"
},
"timer": null,
"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-19T18:04:05.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-19T21:04:05+03:00"
},
"subtasks": [
{
"id": 600,
"name": "Новая подзадача",
"priority_id": 0,
"description": null,
"end_at": "2024-06-20T07:00:00.000000Z",
"status_id": 100,
"kanban_status_id": 100,
"project_id": 188,
"slug": "de427c4d-a5b5-4d64-8abe-25de5d19aea6",
"deleted_at": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 851,
"position": "-0.999886749687500000000000000000",
"picture": null,
"pivot": {
"task_id": 599,
"subtask_id": 600
},
"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-19T18:04:05.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": 600,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:04:05+03:00"
}
],
"localtz_end_at": "2024-06-20T10:00:00+03:00",
"localtz_deleted_at": "2024-06-19T21:04:05+03:00",
"localtz_created_at": "2024-06-19T21:04:05+03:00",
"localtz_updated_at": "2024-06-19T21:04:05+03:00"
}
],
"comments": [
{
"id": 51,
"taggable_type": "App\\Models\\Task",
"taggable_id": 599,
"parent_id": null,
"user_id": 18,
"comment": "Комментарий",
"slug": "3c92bf76-c790-426b-b2e4-1291f6099227",
"deleted_at": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"editable": true,
"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-19T18:04:05.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-19T21:04:05+03:00"
},
"localtz_deleted_at": "2024-06-19T21:04:05+03:00",
"localtz_created_at": "2024-06-19T21:04:05+03:00",
"localtz_updated_at": "2024-06-19T21:04:05+03:00"
}
],
"media": [],
"localtz_end_at": "2024-06-20T10:00:00+03:00",
"localtz_deleted_at": "2024-06-19T21:04:05+03:00",
"localtz_created_at": "2024-06-19T21:04:05+03:00",
"localtz_updated_at": "2024-06-19T21:04:05+03:00"
}
},
"message": "success"
}
Загрузка файла во временное хранилище
Заголовки
Параметры URL
Slug пространства
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/upload"
);
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": "syzLeDyYJ61qJfVT1i4MTESLqke8C3UJKvEcbX15.txt",
"message": "success"
}
Экспорт задач
Возвращает .csv файл
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/export"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"project": "aut",
"performer": "aperiam",
"tag": 1,
"priority": 8,
"status": "cupiditate",
"separate_subtasks": true,
"board_id": 6,
"is_non_completed": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Скачать пример файла для импорта
Возвращает .csv файл
Заголовки
Параметры URL
Slug пространства
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/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
Импорт задач
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/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());
{
"success": true,
"data": null,
"message": "success"
}
Создать статус задачи
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/columns"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "cum",
"color": "#2868DCCC",
"board_id": "earum"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"name": "Новый статус",
"color": "#2868DCCC",
"board_id": 175,
"order": 4,
"team_id": 35,
"updated_at": "2024-06-19T17:54:04.000000Z",
"created_at": "2024-06-19T17:54:04.000000Z",
"id": 925
},
"message": "success"
}
Удалить статус задачи
Заголовки
Параметры URL
ID статуса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/columns/1"
);
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"
}
Обновить статус задачи
Заголовки
Параметры URL
ID статуса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/columns/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());
{
"success": true,
"data": {
"id": 925,
"name": "Новый статус (Edited)",
"color": "#2868DCCC",
"order": 4,
"is_system": false,
"type": null,
"board_id": 175,
"team_id": 35,
"created_at": "2024-06-19T17:54:04.000000Z",
"updated_at": "2024-06-19T17:55:43.000000Z"
},
"message": "success"
}
Создать поле пользователя для задач
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/custom-fields"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "et",
"type": "text",
"show_in_cards": true,
"always_show_in_task": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"name": "Новое поле",
"type": "text",
"show_in_cards": true,
"always_show_in_task": true,
"team_id": 35,
"updated_at": "2024-06-19T18:25:06.000000Z",
"created_at": "2024-06-19T18:25:06.000000Z",
"id": 83
},
"message": "success"
}
Изменить порядок полей пользователя в задачах
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/custom-fields/change-position"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Обновить поле пользователя в задачах
Заголовки
Параметры URL
Slug пространства
ID поля пользователя
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/custom-fields/82"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Номер договора",
"type": "text",
"show_in_cards": true,
"always_show_in_task": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"field": {
"id": 83,
"team_id": 35,
"name": "Новое поле (Edited)",
"type": "text",
"show_in_cards": true,
"always_show_in_task": true,
"created_at": "2024-06-19T18:25:06.000000Z",
"updated_at": "2024-06-19T18:25:57.000000Z",
"order": 0
},
"is_was_changed_type": false
},
"message": "success"
}
Удалить поле пользователя в задачах
Заголовки
Параметры URL
Slug пространства
ID поля пользователя
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/custom-fields/82"
);
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"
}
Получить задачу
Заголовки
Параметры URL
Slug пространства
Slug задачи
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7"
);
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": 599,
"name": "Новая задача",
"priority_id": 4,
"description": "<p>Описание</p>",
"end_at": "2024-06-20T07:00:00.000000Z",
"status_id": 100,
"kanban_status_id": 100,
"project_id": 188,
"slug": "2e44d1ab-f223-46c6-a3b4-78e026d6af79",
"deleted_at": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 851,
"position": "0.000113250312500090000000000000",
"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-19T18:06:16.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": 599,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:06:16+03:00"
}
],
"media": [],
"comments": [
{
"id": 51,
"taggable_type": "App\\Models\\Task",
"taggable_id": 599,
"parent_id": null,
"user_id": 18,
"comment": "Комментарий",
"slug": "3c92bf76-c790-426b-b2e4-1291f6099227",
"deleted_at": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"editable": true,
"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-19T18:06:16.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-19T21:06:16+03:00"
},
"localtz_deleted_at": "2024-06-19T21:06:16+03:00",
"localtz_created_at": "2024-06-19T21:04:05+03:00",
"localtz_updated_at": "2024-06-19T21:04:05+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": 599,
"tag_id": 149,
"taggable_type": "App\\Models\\Task"
}
}
],
"timer": null,
"subtasks": [
{
"id": 600,
"name": "Новая подзадача",
"priority_id": 0,
"description": null,
"end_at": "2024-06-20T07:00:00.000000Z",
"status_id": 100,
"kanban_status_id": 100,
"project_id": 188,
"slug": "de427c4d-a5b5-4d64-8abe-25de5d19aea6",
"deleted_at": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 851,
"position": "-0.999886749687500000000000000000",
"picture": null,
"pivot": {
"task_id": 599,
"subtask_id": 600
},
"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-19T18:06:16.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": 600,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:06:16+03:00"
}
],
"localtz_end_at": "2024-06-20T10:00:00+03:00",
"localtz_deleted_at": "2024-06-19T21:06:16+03:00",
"localtz_created_at": "2024-06-19T21:04:05+03:00",
"localtz_updated_at": "2024-06-19T21:04:05+03:00"
}
],
"recurring": {
"id": 61,
"task_id": 599,
"type": "every-month",
"time": "07:00:00",
"skip_weekends": true,
"value": 1,
"next_replay": "2024-07-01 07:00:00",
"replayed_at": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"timezone": "Europe/Moscow"
},
"reminder": {
"id": 36,
"date": "2024-06-20 18:03:00",
"task_id": 599,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.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": 599,
"field_id": 74,
"value": "100"
}
},
{
"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": 599,
"field_id": 77,
"value": true
}
}
],
"logs": [
{
"id": 1887,
"type": "store",
"task_id": 599,
"initiator_id": 18,
"text": "создал(-а) задачу",
"data": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"initiator": {
"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-19T18:06:16.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-19T21:06:16+03:00"
}
}
],
"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-19T18:06:16.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-19T21:06:16+03:00"
},
"task": null,
"localtz_end_at": "2024-06-20T10:00:00+03:00",
"localtz_deleted_at": "2024-06-19T21:06:16+03:00",
"localtz_created_at": "2024-06-19T21:04:05+03:00",
"localtz_updated_at": "2024-06-19T21:04:05+03:00"
},
"message": "success"
}
Обновить значение поля пользователя
Заголовки
Параметры URL
Slug пространства
Slug задачи
ID поля пользователя
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/custom-fields/5"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"value": "cumque"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"id": 83,
"team_id": 35,
"name": "Новое поле (Edited)",
"type": "text",
"show_in_cards": true,
"always_show_in_task": true,
"created_at": "2024-06-19T18:25:06.000000Z",
"updated_at": "2024-06-19T18:25:57.000000Z",
"order": 0,
"pivot": {
"task_id": 569,
"field_id": 83,
"value": "Новое значение"
}
},
"message": "success"
}
Прикрепить поле пользователя к задаче
Заголовки
Параметры URL
Slug пространства
Slug задачи
ID поля пользователя
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/custom-fields/11"
);
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": 83,
"team_id": 35,
"name": "Новое поле (Edited)",
"type": "text",
"show_in_cards": true,
"always_show_in_task": true,
"created_at": "2024-06-19T18:25:06.000000Z",
"updated_at": "2024-06-19T18:25:57.000000Z",
"order": 0,
"pivot": {
"task_id": 569,
"field_id": 83,
"value": "Новое значение"
}
},
"message": "success"
}
Открепить поле пользователя от задачи
Заголовки
Параметры URL
Slug пространства
Slug задачи
ID поля пользователя
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/custom-fields/12"
);
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"
}
Поиск родительской задачи
Заголовки
Параметры URL
Slug пространства
Slug задачи
Параметры запроса
Строка поиска
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/search"
);
const params = {
"query": "voluptas",
};
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": [
{
"id": 599,
"name": "Новая задача",
"date": "От 19 июн"
},
{
"id": 569,
"name": "Моя первая задача в O!task",
"date": "От 11 июн"
},
{
"id": 573,
"name": "Задача с критическим приоритетом",
"date": "От 11 июн"
},
{
"id": 574,
"name": "Задача без приоритета",
"date": "От 11 июн"
}
],
"message": "success"
}
Переместить задачу в календаре
Заголовки
Параметры URL
Slug пространства
Slug задачи
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/move-calendar"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"date": "2024-06-17T15:00:00.000Z",
"up": 18,
"down": 18
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"id": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:07:58.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-19T18:07:58.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-19T21:07:58+03:00"
}
],
"media": [],
"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-19T18:07:58.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-19T21:07:58+03:00"
},
"localtz_deleted_at": "2024-06-19T21:07:58+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-19T18:07:58.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-19T21:07:58+03:00"
},
"localtz_deleted_at": "2024-06-19T21:07:58+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-19T21:07:58+03:00",
"localtz_deleted_at": "2024-06-19T21:07:58+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-19T21:07:58+03:00",
"localtz_deleted_at": "2024-06-19T21:07:58+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-19T21:07:58+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
}
}
],
"logs": [
{
"id": 1889,
"type": "update_end_at",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) дату",
"data": {
"date": "2024-06-11T10:51:00.000000Z"
},
"created_at": "2024-06-19T18:07:58.000000Z",
"updated_at": "2024-06-19T18:07:58.000000Z",
"initiator": {
"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-19T18:07:58.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-19T21:07:58+03:00"
}
},
{
"id": 1886,
"type": "update_priority",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) приоритет на \"средний\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:07:58.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-19T21:07:58+03:00"
}
},
{
"id": 1885,
"type": "upload_media",
"task_id": 569,
"initiator_id": 18,
"text": "загрузил(-а) файл \"124.pdf\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:07:58.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-19T21:07:58+03:00"
}
},
{
"id": 1884,
"type": "attach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) метку “Первая метка“",
"data": null,
"created_at": "2024-06-19T15:59:20.000000Z",
"updated_at": "2024-06-19T15:59:20.000000Z",
"initiator": {
"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-19T18:07:58.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-19T21:07:58+03:00"
}
},
{
"id": 1869,
"type": "detach_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) поле пользователя \"Номер договора\"",
"data": null,
"created_at": "2024-06-17T17:11:45.000000Z",
"updated_at": "2024-06-17T17:11:45.000000Z",
"initiator": {
"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-19T18:07:58.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-19T21:07:58+03:00"
}
},
{
"id": 1868,
"type": "update_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "обновил(-а) значение поля пользователя \"Название поля\" на \"значение\"",
"data": {
"field": "Название поля",
"value": "значение"
},
"created_at": "2024-06-17T16:49:40.000000Z",
"updated_at": "2024-06-17T16:49:40.000000Z",
"initiator": {
"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-19T18:07:58.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-19T21:07:58+03:00"
}
},
{
"id": 1861,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Ещё один файл.png\"",
"data": null,
"created_at": "2024-06-17T10:43:26.000000Z",
"updated_at": "2024-06-17T10:43:26.000000Z",
"initiator": {
"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-19T18:07:58.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-19T21:07:58+03:00"
}
},
{
"id": 1860,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Первый файл.txt\"",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:07:58.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-19T21:07:58+03:00"
}
},
{
"id": 1859,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Маркетинг“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:07:58.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-19T21:07:58+03:00"
}
},
{
"id": 1858,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Консультация“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:07:58.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-19T21:07:58+03:00"
}
}
],
"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-19T18:07:58.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-19T21:07:58+03:00"
},
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:07:58+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:07:58+03:00"
},
"message": "success"
}
Обновить задачу
Заголовки
Параметры URL
Slug пространства
Slug задачи
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "laudantium",
"board_id": 16,
"board_column_id": 16,
"comment": "similique",
"description": "Dolorem aut minus minima sed.",
"end_at": "2024-06-18T07:00:00.000Z",
"files": [
{
"name": "124.pdf",
"temp_src": "DLuKWdN9nUm8wxoc89bl9qjb7QDNHOhZfQkn4H1V.pdf"
}
],
"performers": [
"excepturi"
],
"priority_id": 6,
"project_id": 12,
"subtasks": [
{
"id": null,
"end_at": "2024-06-18T07:00:00.000Z",
"is_completed": false,
"name": "Подзадача 1",
"performers": [
1
]
}
],
"tags": [
"dolor"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"task": {
"id": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:07:58.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 851,
"position": "1.000113250312500000000000000000",
"picture": null,
"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",
"members": [],
"localtz_start_at": "2024-06-11T13:51:38+03:00",
"localtz_deleted_at": "2024-06-19T21:08:32+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"
},
"board": {
"id": 175,
"slug": "9e2ca896-5bee-48fb-835c-b8c1b6590f6d",
"name": "Первая доска",
"order": 1,
"project_id": 188,
"team_id": 35,
"created_at": "2024-06-11T10:51:38.000000Z",
"updated_at": "2024-06-19T17:33:24.000000Z"
},
"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"
}
}
],
"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-19T18:08:32.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-19T21:08:32+03:00"
}
],
"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-19T21:08:32+03:00",
"localtz_deleted_at": "2024-06-19T21:08: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-19T21:08:32+03:00",
"localtz_deleted_at": "2024-06-19T21:08: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-19T21:08:32+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
}
],
"media": [],
"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-19T18:08:32.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-19T21:08:32+03:00"
},
"localtz_deleted_at": "2024-06-19T21:08: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-19T18:08:32.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-19T21:08:32+03:00"
},
"localtz_deleted_at": "2024-06-19T21:08:32+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
}
],
"timer": null,
"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
}
}
],
"logs": [
{
"id": 1889,
"type": "update_end_at",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) дату",
"data": {
"date": "2024-06-11T10:51:00.000000Z"
},
"created_at": "2024-06-19T18:07:58.000000Z",
"updated_at": "2024-06-19T18:07:58.000000Z",
"initiator": {
"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-19T18:08:32.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-19T21:08:32+03:00"
}
},
{
"id": 1886,
"type": "update_priority",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) приоритет на \"средний\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:08:32.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-19T21:08:32+03:00"
}
},
{
"id": 1885,
"type": "upload_media",
"task_id": 569,
"initiator_id": 18,
"text": "загрузил(-а) файл \"124.pdf\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:08:32.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-19T21:08:32+03:00"
}
},
{
"id": 1884,
"type": "attach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) метку “Первая метка“",
"data": null,
"created_at": "2024-06-19T15:59:20.000000Z",
"updated_at": "2024-06-19T15:59:20.000000Z",
"initiator": {
"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-19T18:08:32.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-19T21:08:32+03:00"
}
},
{
"id": 1869,
"type": "detach_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) поле пользователя \"Номер договора\"",
"data": null,
"created_at": "2024-06-17T17:11:45.000000Z",
"updated_at": "2024-06-17T17:11:45.000000Z",
"initiator": {
"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-19T18:08:32.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-19T21:08:32+03:00"
}
},
{
"id": 1868,
"type": "update_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "обновил(-а) значение поля пользователя \"Название поля\" на \"значение\"",
"data": {
"field": "Название поля",
"value": "значение"
},
"created_at": "2024-06-17T16:49:40.000000Z",
"updated_at": "2024-06-17T16:49:40.000000Z",
"initiator": {
"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-19T18:08:32.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-19T21:08:32+03:00"
}
},
{
"id": 1861,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Ещё один файл.png\"",
"data": null,
"created_at": "2024-06-17T10:43:26.000000Z",
"updated_at": "2024-06-17T10:43:26.000000Z",
"initiator": {
"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-19T18:08:32.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-19T21:08:32+03:00"
}
},
{
"id": 1860,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Первый файл.txt\"",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:08:32.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-19T21:08:32+03:00"
}
},
{
"id": 1859,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Маркетинг“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:08:32.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-19T21:08:32+03:00"
}
},
{
"id": 1858,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Консультация“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:08:32.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-19T21:08:32+03:00"
}
}
],
"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-19T18:08:32.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-19T21:08:32+03:00"
},
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:08:32+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:07:58+03:00"
},
"is_recovery": false,
"is_detach_parent": false
},
"message": "success"
}
Обновить обложку задачи
Заголовки
Параметры URL
Slug пространства
Slug задачи
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/update-picture"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('type', 'delete');
body.append('picture', document.querySelector('input[name="picture"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());
{
"success": true,
"data": {
"id": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:07:58.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 851,
"position": "1.000113250312500000000000000000",
"picture": "https://example.example/storage/uploads/tasks/bbb0c5be-9a51-4198-b1d1-23616e8cb08b.960c2e1b3fd9efd9e90e4dd52feb9b40.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-19T18:09: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",
"pivot": {
"task_id": 569,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:09:21+03:00"
}
],
"media": [],
"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-19T18:09: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-19T21:09:21+03:00"
},
"localtz_deleted_at": "2024-06-19T21:09:21+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-19T18:09: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-19T21:09:21+03:00"
},
"localtz_deleted_at": "2024-06-19T21:09:21+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-19T21:09:21+03:00",
"localtz_deleted_at": "2024-06-19T21:09:21+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-19T21:09:21+03:00",
"localtz_deleted_at": "2024-06-19T21:09:21+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-19T21:09:21+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
}
}
],
"logs": [
{
"id": 1890,
"type": "attach_picture",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) обложку",
"data": null,
"created_at": "2024-06-19T18:09:21.000000Z",
"updated_at": "2024-06-19T18:09:21.000000Z",
"initiator": {
"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-19T18:09: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-19T21:09:21+03:00"
}
},
{
"id": 1889,
"type": "update_end_at",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) дату",
"data": {
"date": "2024-06-11T10:51:00.000000Z"
},
"created_at": "2024-06-19T18:07:58.000000Z",
"updated_at": "2024-06-19T18:07:58.000000Z",
"initiator": {
"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-19T18:09: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-19T21:09:21+03:00"
}
},
{
"id": 1886,
"type": "update_priority",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) приоритет на \"средний\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:09: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-19T21:09:21+03:00"
}
},
{
"id": 1885,
"type": "upload_media",
"task_id": 569,
"initiator_id": 18,
"text": "загрузил(-а) файл \"124.pdf\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:09: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-19T21:09:21+03:00"
}
},
{
"id": 1884,
"type": "attach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) метку “Первая метка“",
"data": null,
"created_at": "2024-06-19T15:59:20.000000Z",
"updated_at": "2024-06-19T15:59:20.000000Z",
"initiator": {
"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-19T18:09: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-19T21:09:21+03:00"
}
},
{
"id": 1869,
"type": "detach_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) поле пользователя \"Номер договора\"",
"data": null,
"created_at": "2024-06-17T17:11:45.000000Z",
"updated_at": "2024-06-17T17:11:45.000000Z",
"initiator": {
"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-19T18:09: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-19T21:09:21+03:00"
}
},
{
"id": 1868,
"type": "update_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "обновил(-а) значение поля пользователя \"Название поля\" на \"значение\"",
"data": {
"field": "Название поля",
"value": "значение"
},
"created_at": "2024-06-17T16:49:40.000000Z",
"updated_at": "2024-06-17T16:49:40.000000Z",
"initiator": {
"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-19T18:09: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-19T21:09:21+03:00"
}
},
{
"id": 1861,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Ещё один файл.png\"",
"data": null,
"created_at": "2024-06-17T10:43:26.000000Z",
"updated_at": "2024-06-17T10:43:26.000000Z",
"initiator": {
"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-19T18:09: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-19T21:09:21+03:00"
}
},
{
"id": 1860,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Первый файл.txt\"",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:09: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-19T21:09:21+03:00"
}
},
{
"id": 1859,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Маркетинг“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:09: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-19T21:09:21+03:00"
}
},
{
"id": 1858,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Консультация“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:09: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-19T21:09:21+03:00"
}
}
],
"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-19T18:09: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-19T21:09:21+03:00"
},
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:09:21+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:07:58+03:00"
},
"message": "success"
}
Переместить задачу
Заголовки
Параметры URL
Slug пространства
Slug задачи
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/move"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"up": 10,
"down": 10,
"type": "tag",
"name": "ab",
"board_column_id": "neque",
"performer_ids": [
1,
2,
3
],
"priority_id": 6,
"tag_ids": [
1,
2,
3
],
"end_at": "2024-06-19T15:00:00.000Z"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"id": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:10:21.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 852,
"position": "1.000113250312500000000000000000",
"picture": "https://example.example/storage/uploads/tasks/bbb0c5be-9a51-4198-b1d1-23616e8cb08b.960c2e1b3fd9efd9e90e4dd52feb9b40.jpeg",
"column": {
"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"
},
"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-19T18:10: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",
"pivot": {
"task_id": 569,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:10:21+03:00"
}
],
"media": [],
"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-19T18:10: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-19T21:10:21+03:00"
},
"localtz_deleted_at": "2024-06-19T21:10:21+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-19T18:10: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-19T21:10:21+03:00"
},
"localtz_deleted_at": "2024-06-19T21:10:21+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-19T21:10:21+03:00",
"localtz_deleted_at": "2024-06-19T21:10:21+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-19T21:10:21+03:00",
"localtz_deleted_at": "2024-06-19T21:10:21+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-19T21:10:21+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
}
}
],
"logs": [
{
"id": 1891,
"type": "update_status",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) статус на «Сделать»",
"data": null,
"created_at": "2024-06-19T18:10:21.000000Z",
"updated_at": "2024-06-19T18:10:21.000000Z",
"initiator": {
"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-19T18:10: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-19T21:10:21+03:00"
}
},
{
"id": 1890,
"type": "attach_picture",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) обложку",
"data": null,
"created_at": "2024-06-19T18:09:21.000000Z",
"updated_at": "2024-06-19T18:09:21.000000Z",
"initiator": {
"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-19T18:10: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-19T21:10:21+03:00"
}
},
{
"id": 1889,
"type": "update_end_at",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) дату",
"data": {
"date": "2024-06-11T10:51:00.000000Z"
},
"created_at": "2024-06-19T18:07:58.000000Z",
"updated_at": "2024-06-19T18:07:58.000000Z",
"initiator": {
"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-19T18:10: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-19T21:10:21+03:00"
}
},
{
"id": 1886,
"type": "update_priority",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) приоритет на \"средний\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:10: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-19T21:10:21+03:00"
}
},
{
"id": 1885,
"type": "upload_media",
"task_id": 569,
"initiator_id": 18,
"text": "загрузил(-а) файл \"124.pdf\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:10: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-19T21:10:21+03:00"
}
},
{
"id": 1884,
"type": "attach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) метку “Первая метка“",
"data": null,
"created_at": "2024-06-19T15:59:20.000000Z",
"updated_at": "2024-06-19T15:59:20.000000Z",
"initiator": {
"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-19T18:10: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-19T21:10:21+03:00"
}
},
{
"id": 1869,
"type": "detach_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) поле пользователя \"Номер договора\"",
"data": null,
"created_at": "2024-06-17T17:11:45.000000Z",
"updated_at": "2024-06-17T17:11:45.000000Z",
"initiator": {
"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-19T18:10: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-19T21:10:21+03:00"
}
},
{
"id": 1868,
"type": "update_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "обновил(-а) значение поля пользователя \"Название поля\" на \"значение\"",
"data": {
"field": "Название поля",
"value": "значение"
},
"created_at": "2024-06-17T16:49:40.000000Z",
"updated_at": "2024-06-17T16:49:40.000000Z",
"initiator": {
"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-19T18:10: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-19T21:10:21+03:00"
}
},
{
"id": 1861,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Ещё один файл.png\"",
"data": null,
"created_at": "2024-06-17T10:43:26.000000Z",
"updated_at": "2024-06-17T10:43:26.000000Z",
"initiator": {
"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-19T18:10: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-19T21:10:21+03:00"
}
},
{
"id": 1860,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Первый файл.txt\"",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:10: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-19T21:10:21+03:00"
}
},
{
"id": 1859,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Маркетинг“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:10: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-19T21:10:21+03:00"
}
},
{
"id": 1858,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Консультация“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:10: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-19T21:10:21+03:00"
}
}
],
"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-19T18:10: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-19T21:10:21+03:00"
},
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:10:21+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:10:21+03:00"
},
"message": "success"
}
Обновить повторение задачи
Заголовки
Параметры URL
Slug пространства
Slug задачи
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/update-recurring"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "every-week",
"skip_weekends": false,
"time": "15:00",
"timezone": "Europe\/Moscow",
"value": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"id": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:10:21.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 852,
"position": "1.000113250312500000000000000000",
"picture": "https://example.example/storage/uploads/tasks/bbb0c5be-9a51-4198-b1d1-23616e8cb08b.960c2e1b3fd9efd9e90e4dd52feb9b40.jpeg",
"recurring": {
"id": 58,
"task_id": 569,
"type": "every-month",
"time": "15:51:00",
"skip_weekends": true,
"value": 15,
"next_replay": "2024-07-15 15:51:00",
"replayed_at": null,
"created_at": "2024-06-11T10:51:38.000000Z",
"updated_at": "2024-06-19T18:11:29.000000Z",
"timezone": "Europe/Moscow"
},
"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-19T18:11:29.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-19T21:11:29+03:00"
}
],
"media": [],
"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-19T18:11:29.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-19T21:11:29+03:00"
},
"localtz_deleted_at": "2024-06-19T21:11:29+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-19T18:11:29.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-19T21:11:29+03:00"
},
"localtz_deleted_at": "2024-06-19T21:11:29+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-19T21:11:29+03:00",
"localtz_deleted_at": "2024-06-19T21:11:29+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-19T21:11:29+03:00",
"localtz_deleted_at": "2024-06-19T21:11:29+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-19T21:11:29+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
}
],
"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
}
}
],
"logs": [
{
"id": 1891,
"type": "update_status",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) статус на «Сделать»",
"data": null,
"created_at": "2024-06-19T18:10:21.000000Z",
"updated_at": "2024-06-19T18:10:21.000000Z",
"initiator": {
"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-19T18:11:29.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-19T21:11:29+03:00"
}
},
{
"id": 1890,
"type": "attach_picture",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) обложку",
"data": null,
"created_at": "2024-06-19T18:09:21.000000Z",
"updated_at": "2024-06-19T18:09:21.000000Z",
"initiator": {
"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-19T18:11:29.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-19T21:11:29+03:00"
}
},
{
"id": 1889,
"type": "update_end_at",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) дату",
"data": {
"date": "2024-06-11T10:51:00.000000Z"
},
"created_at": "2024-06-19T18:07:58.000000Z",
"updated_at": "2024-06-19T18:07:58.000000Z",
"initiator": {
"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-19T18:11:29.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-19T21:11:29+03:00"
}
},
{
"id": 1886,
"type": "update_priority",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) приоритет на \"средний\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:11:29.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-19T21:11:29+03:00"
}
},
{
"id": 1885,
"type": "upload_media",
"task_id": 569,
"initiator_id": 18,
"text": "загрузил(-а) файл \"124.pdf\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:11:29.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-19T21:11:29+03:00"
}
},
{
"id": 1884,
"type": "attach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) метку “Первая метка“",
"data": null,
"created_at": "2024-06-19T15:59:20.000000Z",
"updated_at": "2024-06-19T15:59:20.000000Z",
"initiator": {
"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-19T18:11:29.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-19T21:11:29+03:00"
}
},
{
"id": 1869,
"type": "detach_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) поле пользователя \"Номер договора\"",
"data": null,
"created_at": "2024-06-17T17:11:45.000000Z",
"updated_at": "2024-06-17T17:11:45.000000Z",
"initiator": {
"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-19T18:11:29.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-19T21:11:29+03:00"
}
},
{
"id": 1868,
"type": "update_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "обновил(-а) значение поля пользователя \"Название поля\" на \"значение\"",
"data": {
"field": "Название поля",
"value": "значение"
},
"created_at": "2024-06-17T16:49:40.000000Z",
"updated_at": "2024-06-17T16:49:40.000000Z",
"initiator": {
"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-19T18:11:29.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-19T21:11:29+03:00"
}
},
{
"id": 1861,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Ещё один файл.png\"",
"data": null,
"created_at": "2024-06-17T10:43:26.000000Z",
"updated_at": "2024-06-17T10:43:26.000000Z",
"initiator": {
"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-19T18:11:29.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-19T21:11:29+03:00"
}
},
{
"id": 1860,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Первый файл.txt\"",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:11:29.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-19T21:11:29+03:00"
}
},
{
"id": 1859,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Маркетинг“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:11:29.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-19T21:11:29+03:00"
}
},
{
"id": 1858,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Консультация“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:11:29.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-19T21:11:29+03:00"
}
}
],
"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-19T18:11:29.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-19T21:11:29+03:00"
},
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:11:29+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:10:21+03:00"
},
"message": "success"
}
Выключить повторение задачи
Заголовки
Параметры URL
Slug пространства
Slug задачи
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/disable-recurring"
);
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": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:10:21.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 852,
"position": "1.000113250312500000000000000000",
"picture": "https://example.example/storage/uploads/tasks/bbb0c5be-9a51-4198-b1d1-23616e8cb08b.960c2e1b3fd9efd9e90e4dd52feb9b40.jpeg",
"recurring": 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-19T18:12:22.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-19T21:12:22+03:00"
}
],
"media": [],
"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-19T18:12:22.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-19T21:12:22+03:00"
},
"localtz_deleted_at": "2024-06-19T21:12:22+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-19T18:12:22.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-19T21:12:22+03:00"
},
"localtz_deleted_at": "2024-06-19T21:12:22+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-19T21:12:22+03:00",
"localtz_deleted_at": "2024-06-19T21:12:22+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-19T21:12:22+03:00",
"localtz_deleted_at": "2024-06-19T21:12:22+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-19T21:12:22+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
}
],
"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
}
}
],
"logs": [
{
"id": 1891,
"type": "update_status",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) статус на «Сделать»",
"data": null,
"created_at": "2024-06-19T18:10:21.000000Z",
"updated_at": "2024-06-19T18:10:21.000000Z",
"initiator": {
"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-19T18:12:22.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-19T21:12:22+03:00"
}
},
{
"id": 1890,
"type": "attach_picture",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) обложку",
"data": null,
"created_at": "2024-06-19T18:09:21.000000Z",
"updated_at": "2024-06-19T18:09:21.000000Z",
"initiator": {
"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-19T18:12:22.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-19T21:12:22+03:00"
}
},
{
"id": 1889,
"type": "update_end_at",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) дату",
"data": {
"date": "2024-06-11T10:51:00.000000Z"
},
"created_at": "2024-06-19T18:07:58.000000Z",
"updated_at": "2024-06-19T18:07:58.000000Z",
"initiator": {
"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-19T18:12:22.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-19T21:12:22+03:00"
}
},
{
"id": 1886,
"type": "update_priority",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) приоритет на \"средний\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:12:22.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-19T21:12:22+03:00"
}
},
{
"id": 1885,
"type": "upload_media",
"task_id": 569,
"initiator_id": 18,
"text": "загрузил(-а) файл \"124.pdf\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:12:22.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-19T21:12:22+03:00"
}
},
{
"id": 1884,
"type": "attach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) метку “Первая метка“",
"data": null,
"created_at": "2024-06-19T15:59:20.000000Z",
"updated_at": "2024-06-19T15:59:20.000000Z",
"initiator": {
"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-19T18:12:22.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-19T21:12:22+03:00"
}
},
{
"id": 1869,
"type": "detach_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) поле пользователя \"Номер договора\"",
"data": null,
"created_at": "2024-06-17T17:11:45.000000Z",
"updated_at": "2024-06-17T17:11:45.000000Z",
"initiator": {
"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-19T18:12:22.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-19T21:12:22+03:00"
}
},
{
"id": 1868,
"type": "update_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "обновил(-а) значение поля пользователя \"Название поля\" на \"значение\"",
"data": {
"field": "Название поля",
"value": "значение"
},
"created_at": "2024-06-17T16:49:40.000000Z",
"updated_at": "2024-06-17T16:49:40.000000Z",
"initiator": {
"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-19T18:12:22.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-19T21:12:22+03:00"
}
},
{
"id": 1861,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Ещё один файл.png\"",
"data": null,
"created_at": "2024-06-17T10:43:26.000000Z",
"updated_at": "2024-06-17T10:43:26.000000Z",
"initiator": {
"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-19T18:12:22.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-19T21:12:22+03:00"
}
},
{
"id": 1860,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Первый файл.txt\"",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:12:22.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-19T21:12:22+03:00"
}
},
{
"id": 1859,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Маркетинг“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:12:22.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-19T21:12:22+03:00"
}
},
{
"id": 1858,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Консультация“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:12:22.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-19T21:12:22+03:00"
}
}
],
"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-19T18:12:22.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-19T21:12:22+03:00"
},
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:12:22+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:10:21+03:00"
},
"message": "success"
}
Установить напоминание о задаче
Заголовки
Параметры URL
Slug пространства
Slug задачи
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/reminder"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"date": "19.06.2024 12:00"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"id": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:10:21.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 852,
"position": "1.000113250312500000000000000000",
"picture": "https://example.example/storage/uploads/tasks/bbb0c5be-9a51-4198-b1d1-23616e8cb08b.960c2e1b3fd9efd9e90e4dd52feb9b40.jpeg",
"reminder": {
"id": 32,
"date": "2024-07-13 15:51:00",
"task_id": 569,
"created_at": "2024-06-11T10:51:38.000000Z",
"updated_at": "2024-06-19T18:12:55.000000Z"
},
"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-19T18:12:55.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-19T21:12:55+03:00"
}
],
"media": [],
"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-19T18:12:55.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-19T21:12:55+03:00"
},
"localtz_deleted_at": "2024-06-19T21:12:55+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-19T18:12:55.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-19T21:12:55+03:00"
},
"localtz_deleted_at": "2024-06-19T21:12:55+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-19T21:12:55+03:00",
"localtz_deleted_at": "2024-06-19T21:12:55+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-19T21:12:55+03:00",
"localtz_deleted_at": "2024-06-19T21:12:55+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-19T21:12:55+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
}
],
"recurring": null,
"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
}
}
],
"logs": [
{
"id": 1891,
"type": "update_status",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) статус на «Сделать»",
"data": null,
"created_at": "2024-06-19T18:10:21.000000Z",
"updated_at": "2024-06-19T18:10:21.000000Z",
"initiator": {
"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-19T18:12:55.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-19T21:12:55+03:00"
}
},
{
"id": 1890,
"type": "attach_picture",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) обложку",
"data": null,
"created_at": "2024-06-19T18:09:21.000000Z",
"updated_at": "2024-06-19T18:09:21.000000Z",
"initiator": {
"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-19T18:12:55.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-19T21:12:55+03:00"
}
},
{
"id": 1889,
"type": "update_end_at",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) дату",
"data": {
"date": "2024-06-11T10:51:00.000000Z"
},
"created_at": "2024-06-19T18:07:58.000000Z",
"updated_at": "2024-06-19T18:07:58.000000Z",
"initiator": {
"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-19T18:12:55.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-19T21:12:55+03:00"
}
},
{
"id": 1886,
"type": "update_priority",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) приоритет на \"средний\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:12:55.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-19T21:12:55+03:00"
}
},
{
"id": 1885,
"type": "upload_media",
"task_id": 569,
"initiator_id": 18,
"text": "загрузил(-а) файл \"124.pdf\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:12:55.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-19T21:12:55+03:00"
}
},
{
"id": 1884,
"type": "attach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) метку “Первая метка“",
"data": null,
"created_at": "2024-06-19T15:59:20.000000Z",
"updated_at": "2024-06-19T15:59:20.000000Z",
"initiator": {
"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-19T18:12:55.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-19T21:12:55+03:00"
}
},
{
"id": 1869,
"type": "detach_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) поле пользователя \"Номер договора\"",
"data": null,
"created_at": "2024-06-17T17:11:45.000000Z",
"updated_at": "2024-06-17T17:11:45.000000Z",
"initiator": {
"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-19T18:12:55.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-19T21:12:55+03:00"
}
},
{
"id": 1868,
"type": "update_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "обновил(-а) значение поля пользователя \"Название поля\" на \"значение\"",
"data": {
"field": "Название поля",
"value": "значение"
},
"created_at": "2024-06-17T16:49:40.000000Z",
"updated_at": "2024-06-17T16:49:40.000000Z",
"initiator": {
"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-19T18:12:55.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-19T21:12:55+03:00"
}
},
{
"id": 1861,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Ещё один файл.png\"",
"data": null,
"created_at": "2024-06-17T10:43:26.000000Z",
"updated_at": "2024-06-17T10:43:26.000000Z",
"initiator": {
"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-19T18:12:55.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-19T21:12:55+03:00"
}
},
{
"id": 1860,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Первый файл.txt\"",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:12:55.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-19T21:12:55+03:00"
}
},
{
"id": 1859,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Маркетинг“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:12:55.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-19T21:12:55+03:00"
}
},
{
"id": 1858,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Консультация“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:12:55.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-19T21:12:55+03:00"
}
}
],
"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-19T18:12:55.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-19T21:12:55+03:00"
},
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:12:55+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:10:21+03:00"
},
"message": "success"
}
Выключить напоминание о задаче
Заголовки
Параметры URL
Slug пространства
Slug задачи
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/reminder"
);
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": {
"id": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:10:21.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 852,
"position": "1.000113250312500000000000000000",
"picture": "https://example.example/storage/uploads/tasks/bbb0c5be-9a51-4198-b1d1-23616e8cb08b.960c2e1b3fd9efd9e90e4dd52feb9b40.jpeg",
"reminder": 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-19T18:13:23.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-19T21:13:23+03:00"
}
],
"media": [],
"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-19T18:13:23.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-19T21:13:23+03:00"
},
"localtz_deleted_at": "2024-06-19T21:13:23+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-19T18:13:23.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-19T21:13:23+03:00"
},
"localtz_deleted_at": "2024-06-19T21:13:23+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-19T21:13:23+03:00",
"localtz_deleted_at": "2024-06-19T21:13:23+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-19T21:13:23+03:00",
"localtz_deleted_at": "2024-06-19T21:13:23+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-19T21:13:23+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
}
],
"recurring": null,
"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
}
}
],
"logs": [
{
"id": 1891,
"type": "update_status",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) статус на «Сделать»",
"data": null,
"created_at": "2024-06-19T18:10:21.000000Z",
"updated_at": "2024-06-19T18:10:21.000000Z",
"initiator": {
"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-19T18:13:23.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-19T21:13:23+03:00"
}
},
{
"id": 1890,
"type": "attach_picture",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) обложку",
"data": null,
"created_at": "2024-06-19T18:09:21.000000Z",
"updated_at": "2024-06-19T18:09:21.000000Z",
"initiator": {
"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-19T18:13:23.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-19T21:13:23+03:00"
}
},
{
"id": 1889,
"type": "update_end_at",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) дату",
"data": {
"date": "2024-06-11T10:51:00.000000Z"
},
"created_at": "2024-06-19T18:07:58.000000Z",
"updated_at": "2024-06-19T18:07:58.000000Z",
"initiator": {
"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-19T18:13:23.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-19T21:13:23+03:00"
}
},
{
"id": 1886,
"type": "update_priority",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) приоритет на \"средний\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:13:23.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-19T21:13:23+03:00"
}
},
{
"id": 1885,
"type": "upload_media",
"task_id": 569,
"initiator_id": 18,
"text": "загрузил(-а) файл \"124.pdf\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:13:23.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-19T21:13:23+03:00"
}
},
{
"id": 1884,
"type": "attach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) метку “Первая метка“",
"data": null,
"created_at": "2024-06-19T15:59:20.000000Z",
"updated_at": "2024-06-19T15:59:20.000000Z",
"initiator": {
"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-19T18:13:23.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-19T21:13:23+03:00"
}
},
{
"id": 1869,
"type": "detach_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) поле пользователя \"Номер договора\"",
"data": null,
"created_at": "2024-06-17T17:11:45.000000Z",
"updated_at": "2024-06-17T17:11:45.000000Z",
"initiator": {
"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-19T18:13:23.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-19T21:13:23+03:00"
}
},
{
"id": 1868,
"type": "update_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "обновил(-а) значение поля пользователя \"Название поля\" на \"значение\"",
"data": {
"field": "Название поля",
"value": "значение"
},
"created_at": "2024-06-17T16:49:40.000000Z",
"updated_at": "2024-06-17T16:49:40.000000Z",
"initiator": {
"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-19T18:13:23.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-19T21:13:23+03:00"
}
},
{
"id": 1861,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Ещё один файл.png\"",
"data": null,
"created_at": "2024-06-17T10:43:26.000000Z",
"updated_at": "2024-06-17T10:43:26.000000Z",
"initiator": {
"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-19T18:13:23.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-19T21:13:23+03:00"
}
},
{
"id": 1860,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Первый файл.txt\"",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:13:23.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-19T21:13:23+03:00"
}
},
{
"id": 1859,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Маркетинг“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:13:23.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-19T21:13:23+03:00"
}
},
{
"id": 1858,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Консультация“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:13:23.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-19T21:13:23+03:00"
}
}
],
"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-19T18:13:23.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-19T21:13:23+03:00"
},
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:13:23+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:10:21+03:00"
},
"message": "success"
}
Запустить таймер задачи
Заголовки
Параметры URL
Slug пространства
Slug задачи
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/start-timer"
);
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": {
"task": {
"id": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:10:21.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 852,
"position": "1.000113250312500000000000000000",
"picture": "https://example.example/storage/uploads/tasks/bbb0c5be-9a51-4198-b1d1-23616e8cb08b.960c2e1b3fd9efd9e90e4dd52feb9b40.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-19T18:13:55.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-19T21:13:55+03:00"
}
],
"media": [],
"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-19T18:13:55.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-19T21:13:55+03:00"
},
"localtz_deleted_at": "2024-06-19T21:13:55+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-19T18:13:55.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-19T21:13:55+03:00"
},
"localtz_deleted_at": "2024-06-19T21:13:55+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": {
"id": 35,
"model_type": "App\\Models\\Task",
"model_id": 569,
"slug": "f5fe8e1f-7006-4157-831c-9ec5492e0ba8",
"seconds": 0,
"stopped": false,
"user_id": 18,
"created_at": "2024-06-19T18:13:55.000000Z",
"updated_at": "2024-06-19T18:13:55.000000Z",
"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-19T18:13:55.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-19T21:13:55+03:00"
},
"intervals": [],
"localtz_created_at": "2024-06-19T21:13:55+03:00",
"localtz_updated_at": "2024-06-19T21:13:55+03:00"
},
"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-19T21:13:55+03:00",
"localtz_deleted_at": "2024-06-19T21:13:55+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-19T21:13:55+03:00",
"localtz_deleted_at": "2024-06-19T21:13:55+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-19T21:13:55+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
}
],
"recurring": null,
"reminder": null,
"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
}
}
],
"logs": [
{
"id": 1892,
"type": "start_timer",
"task_id": 569,
"initiator_id": 18,
"text": "запустил(-а) таймер",
"data": null,
"created_at": "2024-06-19T18:13:55.000000Z",
"updated_at": "2024-06-19T18:13:55.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
},
{
"id": 1891,
"type": "update_status",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) статус на «Сделать»",
"data": null,
"created_at": "2024-06-19T18:10:21.000000Z",
"updated_at": "2024-06-19T18:10:21.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
},
{
"id": 1890,
"type": "attach_picture",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) обложку",
"data": null,
"created_at": "2024-06-19T18:09:21.000000Z",
"updated_at": "2024-06-19T18:09:21.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
},
{
"id": 1889,
"type": "update_end_at",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) дату",
"data": {
"date": "2024-06-11T10:51:00.000000Z"
},
"created_at": "2024-06-19T18:07:58.000000Z",
"updated_at": "2024-06-19T18:07:58.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
},
{
"id": 1886,
"type": "update_priority",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) приоритет на \"средний\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
},
{
"id": 1885,
"type": "upload_media",
"task_id": 569,
"initiator_id": 18,
"text": "загрузил(-а) файл \"124.pdf\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
},
{
"id": 1884,
"type": "attach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) метку “Первая метка“",
"data": null,
"created_at": "2024-06-19T15:59:20.000000Z",
"updated_at": "2024-06-19T15:59:20.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
},
{
"id": 1869,
"type": "detach_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) поле пользователя \"Номер договора\"",
"data": null,
"created_at": "2024-06-17T17:11:45.000000Z",
"updated_at": "2024-06-17T17:11:45.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
},
{
"id": 1868,
"type": "update_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "обновил(-а) значение поля пользователя \"Название поля\" на \"значение\"",
"data": {
"field": "Название поля",
"value": "значение"
},
"created_at": "2024-06-17T16:49:40.000000Z",
"updated_at": "2024-06-17T16:49:40.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
},
{
"id": 1861,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Ещё один файл.png\"",
"data": null,
"created_at": "2024-06-17T10:43:26.000000Z",
"updated_at": "2024-06-17T10:43:26.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
},
{
"id": 1860,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Первый файл.txt\"",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
},
{
"id": 1859,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Маркетинг“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
},
{
"id": 1858,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Консультация“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:13:55.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-19T21:13:55+03:00"
}
}
],
"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-19T18:13:55.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-19T21:13:55+03:00"
},
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:13:55+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:10:21+03:00"
},
"timer": {
"user_id": 18,
"stopped": false,
"seconds": 0,
"model_id": 569,
"model_type": "App\\Models\\Task",
"slug": "f5fe8e1f-7006-4157-831c-9ec5492e0ba8",
"updated_at": "2024-06-19T18:13:55.000000Z",
"created_at": "2024-06-19T18:13:55.000000Z",
"id": 35,
"model": {
"id": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:10:21.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 852,
"position": "1.000113250312500000000000000000",
"picture": "https://example.example/storage/uploads/tasks/bbb0c5be-9a51-4198-b1d1-23616e8cb08b.960c2e1b3fd9efd9e90e4dd52feb9b40.jpeg",
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:13:55+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:10:21+03:00"
},
"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-19T18:13:55.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-19T21:13:55+03:00"
},
"intervals": [],
"localtz_created_at": "2024-06-19T21:13:55+03:00",
"localtz_updated_at": "2024-06-19T21:13:55+03:00"
}
},
"message": "success"
}
Остановить таймер задачи
Заголовки
Параметры URL
Slug пространства
Slug задачи
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/stop-timer"
);
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": {
"task": {
"id": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:10:21.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 852,
"position": "1.000113250312500000000000000000",
"picture": "https://example.example/storage/uploads/tasks/bbb0c5be-9a51-4198-b1d1-23616e8cb08b.960c2e1b3fd9efd9e90e4dd52feb9b40.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-19T18:13:58.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-19T21:13:58+03:00"
}
],
"media": [],
"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-19T18:13:58.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-19T21:13:58+03:00"
},
"localtz_deleted_at": "2024-06-19T21:13:58+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-19T18:13:58.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-19T21:13:58+03:00"
},
"localtz_deleted_at": "2024-06-19T21:13:58+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": {
"id": 35,
"model_type": "App\\Models\\Task",
"model_id": 569,
"slug": "f5fe8e1f-7006-4157-831c-9ec5492e0ba8",
"seconds": 3,
"stopped": true,
"user_id": 18,
"created_at": "2024-06-19T18:13:55.000000Z",
"updated_at": "2024-06-19T18:13:58.000000Z",
"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-19T18:13:58.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-19T21:13:58+03:00"
},
"intervals": [
{
"id": 179,
"date": "2024-06-18T21:00:00.000000Z",
"seconds": 3,
"comment": null,
"user_id": 18,
"timer_id": 35,
"created_at": "2024-06-19T18:13:58.000000Z",
"updated_at": "2024-06-19T18:13:58.000000Z",
"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-19T18:13:58.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-19T21:13:58+03:00"
}
}
],
"localtz_created_at": "2024-06-19T21:13:55+03:00",
"localtz_updated_at": "2024-06-19T21:13:58+03:00"
},
"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-19T21:13:58+03:00",
"localtz_deleted_at": "2024-06-19T21:13:58+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-19T21:13:58+03:00",
"localtz_deleted_at": "2024-06-19T21:13:58+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-19T21:13:58+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
}
],
"recurring": null,
"reminder": null,
"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
}
}
],
"logs": [
{
"id": 1893,
"type": "stop_timer",
"task_id": 569,
"initiator_id": 18,
"text": "остановил(-а) таймер (00:00:03)",
"data": null,
"created_at": "2024-06-19T18:13:58.000000Z",
"updated_at": "2024-06-19T18:13:58.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1892,
"type": "start_timer",
"task_id": 569,
"initiator_id": 18,
"text": "запустил(-а) таймер",
"data": null,
"created_at": "2024-06-19T18:13:55.000000Z",
"updated_at": "2024-06-19T18:13:55.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1891,
"type": "update_status",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) статус на «Сделать»",
"data": null,
"created_at": "2024-06-19T18:10:21.000000Z",
"updated_at": "2024-06-19T18:10:21.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1890,
"type": "attach_picture",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) обложку",
"data": null,
"created_at": "2024-06-19T18:09:21.000000Z",
"updated_at": "2024-06-19T18:09:21.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1889,
"type": "update_end_at",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) дату",
"data": {
"date": "2024-06-11T10:51:00.000000Z"
},
"created_at": "2024-06-19T18:07:58.000000Z",
"updated_at": "2024-06-19T18:07:58.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1886,
"type": "update_priority",
"task_id": 569,
"initiator_id": 18,
"text": "изменил(-а) приоритет на \"средний\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1885,
"type": "upload_media",
"task_id": 569,
"initiator_id": 18,
"text": "загрузил(-а) файл \"124.pdf\"",
"data": null,
"created_at": "2024-06-19T15:59:21.000000Z",
"updated_at": "2024-06-19T15:59:21.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1884,
"type": "attach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "добавил(-а) метку “Первая метка“",
"data": null,
"created_at": "2024-06-19T15:59:20.000000Z",
"updated_at": "2024-06-19T15:59:20.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1869,
"type": "detach_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) поле пользователя \"Номер договора\"",
"data": null,
"created_at": "2024-06-17T17:11:45.000000Z",
"updated_at": "2024-06-17T17:11:45.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1868,
"type": "update_custom_field",
"task_id": 569,
"initiator_id": 18,
"text": "обновил(-а) значение поля пользователя \"Название поля\" на \"значение\"",
"data": {
"field": "Название поля",
"value": "значение"
},
"created_at": "2024-06-17T16:49:40.000000Z",
"updated_at": "2024-06-17T16:49:40.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1861,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Ещё один файл.png\"",
"data": null,
"created_at": "2024-06-17T10:43:26.000000Z",
"updated_at": "2024-06-17T10:43:26.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1860,
"type": "destroy_media",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) файл \"Первый файл.txt\"",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1859,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Маркетинг“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
},
{
"id": 1858,
"type": "detach_tag",
"task_id": 569,
"initiator_id": 18,
"text": "удалил(-а) метку “Консультация“",
"data": null,
"created_at": "2024-06-17T10:43:25.000000Z",
"updated_at": "2024-06-17T10:43:25.000000Z",
"initiator": {
"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-19T18:13:58.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-19T21:13:58+03:00"
}
}
],
"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-19T18:13:58.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-19T21:13:58+03:00"
},
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:13:58+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:10:21+03:00"
},
"timer": {
"id": 35,
"model_type": "App\\Models\\Task",
"model_id": 569,
"slug": "f5fe8e1f-7006-4157-831c-9ec5492e0ba8",
"seconds": 3,
"stopped": true,
"user_id": 18,
"created_at": "2024-06-19T18:13:55.000000Z",
"updated_at": "2024-06-19T18:13:58.000000Z",
"model": {
"id": 569,
"name": "Моя первая задача в O!task",
"priority_id": 3,
"description": "В этом поле вы можете добавлять описание задачам",
"end_at": "2024-06-11T10:51:00.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-19T18:10:21.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 852,
"position": "1.000113250312500000000000000000",
"picture": "https://example.example/storage/uploads/tasks/bbb0c5be-9a51-4198-b1d1-23616e8cb08b.960c2e1b3fd9efd9e90e4dd52feb9b40.jpeg",
"localtz_end_at": "2024-06-11T13:51:00+03:00",
"localtz_deleted_at": "2024-06-19T21:13:58+03:00",
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:10:21+03:00"
},
"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-19T18:13:58.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-19T21:13:58+03:00"
},
"intervals": [
{
"id": 179,
"date": "2024-06-18T21:00:00.000000Z",
"seconds": 3,
"comment": null,
"user_id": 18,
"timer_id": 35,
"created_at": "2024-06-19T18:13:58.000000Z",
"updated_at": "2024-06-19T18:13:58.000000Z",
"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-19T18:13:58.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-19T21:13:58+03:00"
}
}
],
"localtz_created_at": "2024-06-19T21:13:55+03:00",
"localtz_updated_at": "2024-06-19T21:13:58+03:00"
}
},
"message": "success"
}
Дублировать задачу
Заголовки
Параметры URL
Slug пространства
Slug задачи
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/duplicate"
);
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": {
"name": "(Копия) Задача без приоритета",
"priority_id": 0,
"description": "Обычная задача без приоритета",
"end_at": "2024-06-12T10:51:40.000000Z",
"status_id": 100,
"kanban_status_id": 100,
"project_id": 188,
"deleted_at": null,
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 853,
"position": -1.9998867496875001,
"slug": "bc07f6a0-eed8-4537-a834-bd63de492e16",
"updated_at": "2024-06-19T18:14:57.000000Z",
"created_at": "2024-06-19T18:14:57.000000Z",
"id": 601,
"picture": null,
"team": {
"id": 35,
"name": "Мое пространство",
"user_id": 18,
"slug": "00819fb6-1068-4588-9631-f3c8b7063661",
"created_at": "2024-06-11T10:51:38.000000Z",
"updated_at": "2024-06-11T10:51:38.000000Z",
"picture": null,
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
},
"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-19T18:14:57.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": 601,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:14:57+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-19T18:14:57.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-19T21:14:57+03:00"
},
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T21:14:57+03:00",
"localtz_created_at": "2024-06-19T21:14:57+03:00",
"localtz_updated_at": "2024-06-19T21:14:57+03:00"
},
"message": "success"
}
Установить родителя для задачи
Заголовки
Параметры URL
Slug пространства
Slug задачи
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/parent"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"parent_id": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"task_with_parents": {
"id": 601,
"name": "(Копия) Задача без приоритета",
"priority_id": 0,
"description": "Обычная задача без приоритета",
"end_at": "2024-06-12T10:51:40.000000Z",
"status_id": 100,
"kanban_status_id": 100,
"project_id": 188,
"slug": "bc07f6a0-eed8-4537-a834-bd63de492e16",
"deleted_at": null,
"created_at": "2024-06-19T18:14:57.000000Z",
"updated_at": "2024-06-19T18:14:57.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 853,
"position": "-1.999886749687500000000000000000",
"picture": null,
"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-19T21:15:31+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"
},
"board": {
"id": 175,
"slug": "9e2ca896-5bee-48fb-835c-b8c1b6590f6d",
"name": "Первая доска",
"order": 1,
"project_id": 188,
"team_id": 35,
"created_at": "2024-06-11T10:51:38.000000Z",
"updated_at": "2024-06-19T17:33:24.000000Z"
},
"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-19T18:15: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": 601,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:15:31+03:00"
}
],
"media": [],
"comments": [],
"tags": [],
"timer": null,
"subtasks": [],
"recurring": null,
"reminder": null,
"custom_fields": [],
"logs": [],
"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-19T18:15: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-19T21:15:31+03:00"
},
"task": {
"id": 599,
"name": "Новая задача",
"priority_id": 4,
"description": "<p>Описание</p>",
"end_at": "2024-06-20T07:00:00.000000Z",
"status_id": 100,
"kanban_status_id": 100,
"project_id": 188,
"slug": "2e44d1ab-f223-46c6-a3b4-78e026d6af79",
"deleted_at": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 851,
"position": "0.000113250312500090000000000000",
"picture": null,
"pivot": {
"subtask_id": 601,
"task_id": 599
},
"localtz_end_at": "2024-06-20T10:00:00+03:00",
"localtz_deleted_at": "2024-06-19T21:15:31+03:00",
"localtz_created_at": "2024-06-19T21:04:05+03:00",
"localtz_updated_at": "2024-06-19T21:04:05+03:00"
},
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T21:15:31+03:00",
"localtz_created_at": "2024-06-19T21:14:57+03:00",
"localtz_updated_at": "2024-06-19T21:14:57+03:00"
},
"task_without_parents": {
"id": 601,
"name": "(Копия) Задача без приоритета",
"priority_id": 0,
"description": "Обычная задача без приоритета",
"end_at": "2024-06-12T10:51:40.000000Z",
"status_id": 100,
"kanban_status_id": 100,
"project_id": 188,
"slug": "bc07f6a0-eed8-4537-a834-bd63de492e16",
"deleted_at": null,
"created_at": "2024-06-19T18:14:57.000000Z",
"updated_at": "2024-06-19T18:14:57.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 853,
"position": "-1.999886749687500000000000000000",
"picture": null,
"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-19T21:15:31+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"
},
"board": {
"id": 175,
"slug": "9e2ca896-5bee-48fb-835c-b8c1b6590f6d",
"name": "Первая доска",
"order": 1,
"project_id": 188,
"team_id": 35,
"created_at": "2024-06-11T10:51:38.000000Z",
"updated_at": "2024-06-19T17:33:24.000000Z"
},
"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-19T18:15: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": 601,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:15:31+03:00"
}
],
"media": [],
"comments": [],
"tags": [],
"timer": null,
"subtasks": [],
"recurring": null,
"reminder": null,
"custom_fields": [],
"logs": [],
"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-19T18:15: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-19T21:15:31+03:00"
},
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T21:15:31+03:00",
"localtz_created_at": "2024-06-19T21:14:57+03:00",
"localtz_updated_at": "2024-06-19T21:14:57+03:00"
}
},
"message": "success"
}
Удалить задачу
Заголовки
Параметры URL
Slug пространства
Slug задачи
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/destroy"
);
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"
}
Переместить задачу в архив
Заголовки
Параметры URL
Slug пространства
Slug задачи
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/in-archive"
);
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": {
"task": {
"id": 599,
"name": "Новая задача",
"priority_id": 4,
"description": "<p>Описание</p>",
"end_at": "2024-06-20T07:00:00.000000Z",
"status_id": 400,
"kanban_status_id": 400,
"project_id": 188,
"slug": "2e44d1ab-f223-46c6-a3b4-78e026d6af79",
"deleted_at": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:16:20.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": null,
"board_column_id": null,
"position": "0.000113250312500090000000000000",
"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-19T18:16:20.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": 599,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:16:20+03:00"
}
],
"media": [],
"comments": [
{
"id": 51,
"taggable_type": "App\\Models\\Task",
"taggable_id": 599,
"parent_id": null,
"user_id": 18,
"comment": "Комментарий",
"slug": "3c92bf76-c790-426b-b2e4-1291f6099227",
"deleted_at": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"editable": true,
"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-19T18:16:20.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-19T21:16:20+03:00"
},
"localtz_deleted_at": "2024-06-19T21:16:20+03:00",
"localtz_created_at": "2024-06-19T21:04:05+03:00",
"localtz_updated_at": "2024-06-19T21:04:05+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": 599,
"tag_id": 149,
"taggable_type": "App\\Models\\Task"
}
}
],
"timer": null,
"subtasks": [
{
"id": 600,
"name": "Новая подзадача",
"priority_id": 0,
"description": null,
"end_at": "2024-06-20T07:00:00.000000Z",
"status_id": 100,
"kanban_status_id": 100,
"project_id": 188,
"slug": "de427c4d-a5b5-4d64-8abe-25de5d19aea6",
"deleted_at": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 851,
"position": "-0.999886749687500000000000000000",
"picture": null,
"pivot": {
"task_id": 599,
"subtask_id": 600
},
"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-19T18:16:20.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": 600,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:16:20+03:00"
}
],
"localtz_end_at": "2024-06-20T10:00:00+03:00",
"localtz_deleted_at": "2024-06-19T21:16:20+03:00",
"localtz_created_at": "2024-06-19T21:04:05+03:00",
"localtz_updated_at": "2024-06-19T21:04:05+03:00"
},
{
"id": 601,
"name": "(Копия) Задача без приоритета",
"priority_id": 0,
"description": "Обычная задача без приоритета",
"end_at": "2024-06-12T10:51:40.000000Z",
"status_id": 100,
"kanban_status_id": 100,
"project_id": 188,
"slug": "bc07f6a0-eed8-4537-a834-bd63de492e16",
"deleted_at": null,
"created_at": "2024-06-19T18:14:57.000000Z",
"updated_at": "2024-06-19T18:14:57.000000Z",
"creator_id": 18,
"team_id": 35,
"board_id": 175,
"board_column_id": 853,
"position": "-1.999886749687500000000000000000",
"picture": null,
"pivot": {
"task_id": 599,
"subtask_id": 601
},
"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-19T18:16:20.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": 601,
"user_id": 18
},
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T21:16:20+03:00"
}
],
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T21:16:20+03:00",
"localtz_created_at": "2024-06-19T21:14:57+03:00",
"localtz_updated_at": "2024-06-19T21:14:57+03:00"
}
],
"recurring": {
"id": 61,
"task_id": 599,
"type": "every-month",
"time": "07:00:00",
"skip_weekends": true,
"value": 1,
"next_replay": "2024-07-01 07:00:00",
"replayed_at": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"timezone": "Europe/Moscow"
},
"reminder": {
"id": 36,
"date": "2024-06-20 18:03:00",
"task_id": 599,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.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": 599,
"field_id": 74,
"value": "100"
}
},
{
"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": 599,
"field_id": 77,
"value": true
}
}
],
"logs": [
{
"id": 1887,
"type": "store",
"task_id": 599,
"initiator_id": 18,
"text": "создал(-а) задачу",
"data": null,
"created_at": "2024-06-19T18:04:05.000000Z",
"updated_at": "2024-06-19T18:04:05.000000Z",
"initiator": {
"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-19T18:16:20.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-19T21:16:20+03:00"
}
}
],
"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-19T18:16:20.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-19T21:16:20+03:00"
},
"localtz_end_at": "2024-06-20T10:00:00+03:00",
"localtz_deleted_at": "2024-06-19T21:16:20+03:00",
"localtz_created_at": "2024-06-19T21:04:05+03:00",
"localtz_updated_at": "2024-06-19T21:16:20+03:00"
}
},
"message": "success"
}
Проверить может ли пользователь менять статус задачи
Заголовки
Параметры URL
Slug пространства
Slug задачи
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/check/change-status"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
storage/app/api_docs/empty.json
Добавить комментарий
Заголовки
Параметры URL
Slug пространства
Slug задачи
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/comments/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"comment": "nulla"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Обновить комментарий
Заголовки
Параметры URL
Slug пространства
Slug задачи
Slug комментария
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/comments/f48c4179-ed01-4f73-ab22-57c7273269f7/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"comment": "maiores"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"comment": {
"id": 52,
"taggable_type": "App\\Models\\Task",
"taggable_id": 574,
"parent_id": null,
"user_id": 18,
"comment": "Комментарий (Edited)",
"slug": "f5ff86b9-4b8f-4648-8271-275b6527d8f1",
"deleted_at": null,
"created_at": "2024-06-19T18:17:16.000000Z",
"updated_at": "2024-06-19T18:17:51.000000Z",
"editable": true,
"commentHtml": "Комментарий (Edited)",
"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-19T18:17:16.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-19T21:17:16+03:00"
},
"localtz_deleted_at": "2024-06-19T21:17:51+03:00",
"localtz_created_at": "2024-06-19T21:17:16+03:00",
"localtz_updated_at": "2024-06-19T21:17:51+03:00"
}
},
"message": "success"
}
Удалить комментарий
Заголовки
Параметры URL
Slug пространства
Slug задачи
Slug комментария
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/comments/f48c4179-ed01-4f73-ab22-57c7273269f7/delete"
);
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"
}
Добавить интервал в задачу
Заголовки
Параметры URL
Slug пространства
Slug задачи
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/intervals"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 14,
"date": "18.06.2024",
"seconds": 12,
"comment": "minus"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"user_id": 18,
"stopped": true,
"seconds": 60,
"model_id": 574,
"model_type": "App\\Models\\Task",
"slug": "3537b0ff-e252-426d-9c93-ffd6d75836a5",
"updated_at": "2024-06-19T18:19:09.000000Z",
"created_at": "2024-06-19T18:19:09.000000Z",
"id": 36,
"model": {
"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,
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T21:19:09+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"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-19T18:19:09.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-19T21:19:09+03:00"
},
"intervals": [
{
"id": 180,
"date": "2024-06-18T21:00:00.000000Z",
"seconds": 60,
"comment": "Комментарий",
"user_id": 18,
"timer_id": 36,
"created_at": "2024-06-19T18:19:09.000000Z",
"updated_at": "2024-06-19T18:19:09.000000Z",
"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-19T18:19:09.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-19T21:19:09+03:00"
}
}
],
"localtz_created_at": "2024-06-19T21:19:09+03:00",
"localtz_updated_at": "2024-06-19T21:19:09+03:00"
},
"message": "success"
}
Обновить комментарий интервала
Заголовки
Параметры URL
Slug пространства
Slug задачи
ID интервала
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/intervals/6/update-comment"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"comment": "asperiores"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Обновить интервал задачи
Заголовки
Параметры URL
Slug пространства
Slug задачи
ID интервала
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/intervals/18"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 7,
"date": "18.06.2024",
"seconds": 5,
"comment": "vel"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"id": 36,
"model_type": "App\\Models\\Task",
"model_id": 574,
"slug": "3537b0ff-e252-426d-9c93-ffd6d75836a5",
"seconds": 120,
"stopped": true,
"user_id": 18,
"created_at": "2024-06-19T18:19:09.000000Z",
"updated_at": "2024-06-19T18:19:09.000000Z",
"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-19T18:20:06.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-19T21:20:06+03:00"
},
"intervals": [
{
"id": 180,
"date": "2024-06-18T21:00:00.000000Z",
"seconds": 120,
"comment": "Комментарий",
"user_id": 18,
"timer_id": 36,
"created_at": "2024-06-19T18:19:09.000000Z",
"updated_at": "2024-06-19T18:20:06.000000Z",
"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-19T18:20:06.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-19T21:20:06+03:00"
}
}
],
"model": {
"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,
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T21:20:06+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"localtz_created_at": "2024-06-19T21:19:09+03:00",
"localtz_updated_at": "2024-06-19T21:19:09+03:00"
},
"message": "success"
}
Удалить интервал задачи
Заголовки
Параметры URL
Slug пространства
Slug задачи
ID интервала
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/intervals/19"
);
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": {
"id": 36,
"model_type": "App\\Models\\Task",
"model_id": 574,
"slug": "3537b0ff-e252-426d-9c93-ffd6d75836a5",
"seconds": 0,
"stopped": true,
"user_id": 18,
"created_at": "2024-06-19T18:19:09.000000Z",
"updated_at": "2024-06-19T18:19:09.000000Z",
"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-19T18:21:29.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-19T21:21:29+03:00"
},
"intervals": [],
"model": {
"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,
"localtz_end_at": "2024-06-12T13:51:40+03:00",
"localtz_deleted_at": "2024-06-19T21:21:29+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"localtz_created_at": "2024-06-19T21:19:09+03:00",
"localtz_updated_at": "2024-06-19T21:19:09+03:00"
},
"message": "success"
}
Скачать файл задачи
Заголовки
Параметры URL
Slug пространства
Slug задачи
Slug файла
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tasks/f48c4179-ed01-4f73-ab22-57c7273269f7/media/f48c4179-ed01-4f73-ab22-57c7273269f7/download"
);
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": "https://example.example/download/687e65fa-7904-44e0-89f2-7e2d4b2bea1e",
"message": "success"
}
Создать метку
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tags/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "adipisci",
"color": "#8910D9",
"bg_color": "#F7E8FF",
"model_type": "App\\Models\\Task"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Обновить метку
Заголовки
Параметры URL
Slug пространства
ID метки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tags/1/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "aut",
"color": "#8910D9",
"bg_color": "#F7E8FF"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Удалить метку
Заголовки
Параметры URL
Slug пространства
ID метки
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tags/1/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Изменить позицию метки
Заголовки
Параметры URL
Slug пространства
ID метки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/tags/1/change-position"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"up": 2,
"down": 3
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Финансы
Получить платежи
Заголовки
Параметры URL
Slug пространства
Параметры запроса
desc
asc
payment_date
project_id
amount
Тип платежа: 100 - Поступление, 200 - Расход
100
200
ID клиента
ID проекта
ID категории
От
От
Страница
Показывать на странице
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments"
);
const params = {
"sort_type": "desc",
"sort_field": "project_id",
"type_id": "100",
"client_id": "2",
"project_id": "6",
"category_id": "2",
"start_at": "15.06.2024",
"end_at": "18.06.2024",
"page": "10",
"per_page": "10",
};
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": {
"payments": [
{
"id": 211,
"amount": "500.40",
"payment_date": "2024-06-18T13:07:00.000000Z",
"type_id": 100,
"description": null,
"user_id": 18,
"client_id": null,
"project_id": null,
"member_id": null,
"slug": "a7f2eebb-a20b-49c2-91a4-408f74a3fbea",
"created_at": "2024-06-18T13:07:43.000000Z",
"updated_at": "2024-06-18T13:07:43.000000Z",
"team_id": 35,
"category_id": null,
"member": null,
"project": 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-19T18:40:20.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-19T21:40:20+03:00"
},
"client": null,
"category": null,
"localtz_payment_date": "2024-06-18T16:07:00+03:00",
"localtz_created_at": "2024-06-18T16:07:43+03:00",
"localtz_updated_at": "2024-06-18T16:07:43+03:00"
},
{
"id": 196,
"amount": "33000.00",
"payment_date": "2024-06-11T10:51:50.000000Z",
"type_id": 200,
"description": null,
"user_id": 18,
"client_id": null,
"project_id": null,
"member_id": null,
"slug": "496b200d-e681-49d7-aeec-b7e0db0a086c",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 140,
"member": null,
"project": 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-19T18:40:20.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-19T21:40:20+03:00"
},
"client": null,
"category": {
"id": 140,
"name": "Офис",
"type_id": 200,
"order": 8,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:50+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 194,
"amount": "32000.00",
"payment_date": "2024-06-11T10:51:48.000000Z",
"type_id": 200,
"description": null,
"user_id": 18,
"client_id": null,
"project_id": null,
"member_id": null,
"slug": "b530c66b-94d9-457c-9a6c-8764d39f66b9",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 136,
"member": null,
"project": 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-19T18:40:20.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-19T21:40:20+03:00"
},
"client": null,
"category": {
"id": 136,
"name": "Аренда",
"type_id": 200,
"order": 4,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:48+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 193,
"amount": "20000.00",
"payment_date": "2024-06-11T10:51:47.000000Z",
"type_id": 100,
"description": null,
"user_id": 18,
"client_id": 89,
"project_id": 188,
"member_id": null,
"slug": "3872bf16-c2d6-4df4-85c1-f8002768dc26",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 133,
"member": null,
"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-19T21:40:20+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"
},
"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-19T18:40:20.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-19T21:40:20+03:00"
},
"client": {
"id": 89,
"first_name": "ОАО «Ромашка»",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": "8 909 777 77 77",
"slug": "55fdd859-c362-4ac3-8014-6baf4d581cfc",
"team_id": 35,
"full_name": "ОАО «Ромашка»",
"income": 20000,
"localtz_deleted_at": "2024-06-19T21:40:20+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"category": {
"id": 133,
"name": "Разработка сайтов",
"type_id": 100,
"order": 1,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:47+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 192,
"amount": "30000.00",
"payment_date": "2024-06-11T10:51:46.000000Z",
"type_id": 200,
"description": null,
"user_id": 18,
"client_id": null,
"project_id": null,
"member_id": null,
"slug": "3d602cf1-031d-4fce-a63b-c46e20eced42",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 137,
"member": null,
"project": 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-19T18:40:20.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-19T21:40:20+03:00"
},
"client": null,
"category": {
"id": 137,
"name": "Маркетинг - Яндекс.Директ",
"type_id": 200,
"order": 5,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:46+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 191,
"amount": "43500.00",
"payment_date": "2024-06-11T10:51:45.000000Z",
"type_id": 100,
"description": null,
"user_id": 18,
"client_id": null,
"project_id": null,
"member_id": null,
"slug": "62f8f761-ba01-49e3-bc9a-4dbb19c8c814",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 133,
"member": null,
"project": 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-19T18:40:20.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-19T21:40:20+03:00"
},
"client": null,
"category": {
"id": 133,
"name": "Разработка сайтов",
"type_id": 100,
"order": 1,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:45+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 190,
"amount": "12300.00",
"payment_date": "2024-06-11T10:51:44.000000Z",
"type_id": 200,
"description": null,
"user_id": 18,
"client_id": null,
"project_id": 188,
"member_id": null,
"slug": "85e304e5-af44-4e0e-bc6a-d71ac581a950",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 139,
"member": null,
"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-19T21:40:20+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"
},
"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-19T18:40:20.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-19T21:40:20+03:00"
},
"client": null,
"category": {
"id": 139,
"name": "Сервисы доставки",
"type_id": 200,
"order": 7,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:44+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 189,
"amount": "120000.00",
"payment_date": "2024-06-11T10:51:43.000000Z",
"type_id": 100,
"description": null,
"user_id": 18,
"client_id": 90,
"project_id": 188,
"member_id": null,
"slug": "b0e021d6-ca2f-40f2-ac4c-5977ef2cf507",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 135,
"member": null,
"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-19T21:40:20+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"
},
"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-19T18:40:20.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-19T21:40:20+03:00"
},
"client": {
"id": 90,
"first_name": "ИП Сидоров В.А",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": null,
"slug": "3ecf99d9-7a90-44e7-be51-c916192bb69c",
"team_id": 35,
"full_name": "ИП Сидоров В.А",
"income": 120000,
"localtz_deleted_at": "2024-06-19T21:40:20+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"category": {
"id": 135,
"name": "Монетизация YouTube-канала",
"type_id": 100,
"order": 3,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:43+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 188,
"amount": "2000000.00",
"payment_date": "2024-06-11T10:51:42.000000Z",
"type_id": 100,
"description": null,
"user_id": 18,
"client_id": 88,
"project_id": null,
"member_id": null,
"slug": "76bcc472-f681-45d6-9b7c-24af622a3e23",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 134,
"member": null,
"project": 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-19T18:40:20.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-19T21:40:20+03:00"
},
"client": {
"id": 88,
"first_name": "Газпром",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": "8 909 888 88 88",
"slug": "4be26d4e-183d-46c1-b0aa-a21e42c75d46",
"team_id": 35,
"full_name": "Газпром",
"income": 2000000,
"localtz_deleted_at": "2024-06-19T21:40:20+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"category": {
"id": 134,
"name": "Внедрение CRM",
"type_id": 100,
"order": 2,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:42+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 187,
"amount": "80500.00",
"payment_date": "2024-06-11T10:51:41.000000Z",
"type_id": 100,
"description": null,
"user_id": 18,
"client_id": 87,
"project_id": null,
"member_id": null,
"slug": "646dda30-c318-49e1-aa60-48ca0dd7a443",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 133,
"member": null,
"project": 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-19T18:40:20.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-19T21:40:20+03:00"
},
"client": {
"id": 87,
"first_name": "ООО «ТурбоЛаб»",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": "8 909 999 99 99",
"slug": "91356e24-3355-451a-8889-876955b02d0e",
"team_id": 35,
"full_name": "ООО «ТурбоЛаб»",
"income": 80500,
"localtz_deleted_at": "2024-06-19T21:40:20+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"category": {
"id": 133,
"name": "Разработка сайтов",
"type_id": 100,
"order": 1,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:41+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 186,
"amount": "134000.00",
"payment_date": "2024-06-11T10:51:40.000000Z",
"type_id": 100,
"description": null,
"user_id": 18,
"client_id": 86,
"project_id": 188,
"member_id": null,
"slug": "53ac3bdd-3e2f-445a-b57e-1599eb25b79b",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z",
"team_id": 35,
"category_id": 132,
"member": null,
"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-19T21:40:20+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"
},
"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-19T18:40:20.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-19T21:40:20+03:00"
},
"client": {
"id": 86,
"first_name": "O!task",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": null,
"slug": "ab1de9d8-d550-4a05-81ba-5c0f059881fb",
"team_id": 35,
"full_name": "O!task",
"income": 134000,
"localtz_deleted_at": "2024-06-19T21:40:20+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"category": {
"id": 132,
"name": "Консультации",
"type_id": 100,
"order": 0,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:40+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 195,
"amount": "70000.00",
"payment_date": "2024-06-11T10:51:00.000000Z",
"type_id": 200,
"description": null,
"user_id": 18,
"client_id": null,
"project_id": 188,
"member_id": null,
"slug": "1c547ac7-aeba-4819-9991-ac08eaee18b1",
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-19T17:42:39.000000Z",
"team_id": 35,
"category_id": 138,
"member": null,
"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-19T21:40:20+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"
},
"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-19T18:40:20.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-19T21:40:20+03:00"
},
"client": null,
"category": {
"id": 138,
"name": "Зарплаты",
"type_id": 200,
"order": 6,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-11T13:51:00+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-19T20:42:39+03:00"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 20,
"to": 12,
"total": 12
},
"projects_options": [
{
"id": 188,
"name": "Мой первый проект в O!task (демо)",
"slug": "b5fad061-ef75-487c-b2b5-2086581c368a",
"status_id": 100,
"end_at_regular": null,
"localtz_start_at": "2024-06-19T21:40:20+03:00",
"localtz_deleted_at": "2024-06-19T21:40:20+03:00",
"localtz_end_at": "2024-06-19T21:40:20+03:00",
"localtz_end_at_regular": "2024-06-19T21:40:20+03:00",
"localtz_created_at": "2024-06-19T21:40:20+03:00",
"localtz_updated_at": "2024-06-19T21:40:20+03:00"
}
],
"clients_options": [
{
"id": 86,
"first_name": "O!task",
"full_name": "O!task",
"localtz_deleted_at": "2024-06-19T21:40:20+03:00",
"localtz_created_at": "2024-06-19T21:40:20+03:00",
"localtz_updated_at": "2024-06-19T21:40:20+03:00"
},
{
"id": 87,
"first_name": "ООО «ТурбоЛаб»",
"full_name": "ООО «ТурбоЛаб»",
"localtz_deleted_at": "2024-06-19T21:40:20+03:00",
"localtz_created_at": "2024-06-19T21:40:20+03:00",
"localtz_updated_at": "2024-06-19T21:40:20+03:00"
},
{
"id": 88,
"first_name": "Газпром",
"full_name": "Газпром",
"localtz_deleted_at": "2024-06-19T21:40:20+03:00",
"localtz_created_at": "2024-06-19T21:40:20+03:00",
"localtz_updated_at": "2024-06-19T21:40:20+03:00"
},
{
"id": 89,
"first_name": "ОАО «Ромашка»",
"full_name": "ОАО «Ромашка»",
"localtz_deleted_at": "2024-06-19T21:40:20+03:00",
"localtz_created_at": "2024-06-19T21:40:20+03:00",
"localtz_updated_at": "2024-06-19T21:40:20+03:00"
},
{
"id": 90,
"first_name": "ИП Сидоров В.А",
"full_name": "ИП Сидоров В.А",
"localtz_deleted_at": "2024-06-19T21:40:20+03:00",
"localtz_created_at": "2024-06-19T21:40:20+03:00",
"localtz_updated_at": "2024-06-19T21:40:20+03:00"
}
],
"categories_options": [
{
"id": 132,
"name": "Консультации",
"type_id": 100,
"order": 0,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 133,
"name": "Разработка сайтов",
"type_id": 100,
"order": 1,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 134,
"name": "Внедрение CRM",
"type_id": 100,
"order": 2,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 135,
"name": "Монетизация YouTube-канала",
"type_id": 100,
"order": 3,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 136,
"name": "Аренда",
"type_id": 200,
"order": 4,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 137,
"name": "Маркетинг - Яндекс.Директ",
"type_id": 200,
"order": 5,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 138,
"name": "Зарплаты",
"type_id": 200,
"order": 6,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 139,
"name": "Сервисы доставки",
"type_id": 200,
"order": 7,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 140,
"name": "Офис",
"type_id": 200,
"order": 8,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
}
],
"have_payments": true
},
"message": "success"
}
Получить список участников команды для платежей
Заголовки
Параметры URL
Slug пространства
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/members"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
{
"data": [
{
"id": 20,
"full_name": "test",
"avatar": "https://example.example/storage/uploads/users/4f5fc703-ce49-4cfa-abf7-8d023637aae5.jpg",
"isonline": true
}
]
}
Создать платеж
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount": 500.39999999999998,
"category_id": 14,
"client_id": 7,
"description": "Debitis voluptatem laboriosam dolorem.",
"member_id": 11,
"payment_date": "18.06.2024 - 16:07",
"project_id": 2,
"type_id": 200
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"row": {
"amount": "700.30",
"description": null,
"payment_date": "2024-06-19T18:44:00.000000Z",
"type_id": 100,
"category_id": 132,
"client_id": 89,
"user_id": 18,
"member_id": null,
"project_id": 188,
"team_id": 35,
"slug": "98456f35-49a9-41fe-af28-842a8e10e43b",
"updated_at": "2024-06-19T18:44:22.000000Z",
"created_at": "2024-06-19T18:44:22.000000Z",
"id": 226,
"member": null,
"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-19T21:44:22+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"
},
"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-19T18:44:22.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-19T21:44:22+03:00"
},
"category": {
"id": 132,
"name": "Консультации",
"type_id": 100,
"order": 0,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"client": {
"id": 89,
"first_name": "ОАО «Ромашка»",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": "8 909 777 77 77",
"slug": "55fdd859-c362-4ac3-8014-6baf4d581cfc",
"team_id": 35,
"full_name": "ОАО «Ромашка»",
"income": 20700.299999999999,
"localtz_deleted_at": "2024-06-19T21:44:22+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"localtz_payment_date": "2024-06-19T21:44:00+03:00",
"localtz_created_at": "2024-06-19T21:44:22+03:00",
"localtz_updated_at": "2024-06-19T21:44:22+03:00"
}
},
"message": "success"
}
Получить аналитику финансов
Заголовки
Параметры URL
Slug пространства
Параметры запроса
ID клиента
Тип группировки
week
quarter
month
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/analytics"
);
const params = {
"start_at": "15.06.2024",
"end_at": "18.06.2024",
"client_id": "15",
"project_id": "iusto",
"type": "week",
};
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": {
"income": "2399200.70",
"expense": "177300.00",
"profit": 2221900.7000000002,
"finances_statistics": [
{
"label": "01 июн - 02 июн",
"date": "2024-06-01",
"income": 0,
"expense": 0,
"profit": 0
},
{
"label": "03 июн - 09 июн",
"date": "2024-06-03",
"income": 0,
"expense": 0,
"profit": 0
},
{
"label": "10 июн - 16 июн",
"date": "2024-06-10",
"income": "2398000.00",
"expense": "177300.00",
"profit": 2220700
},
{
"label": "17 июн - 19 июн",
"date": "2024-06-17",
"income": "1200.70",
"expense": 0,
"profit": 1200.7
}
],
"income_statistics": [
{
"amount_sum": "2000000.00",
"category_id": 134,
"category": {
"id": 134,
"name": "Внедрение CRM",
"type_id": 100,
"order": 2,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
},
{
"amount_sum": "144000.00",
"category_id": 133,
"category": {
"id": 133,
"name": "Разработка сайтов",
"type_id": 100,
"order": 1,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
},
{
"amount_sum": "134700.30",
"category_id": 132,
"category": {
"id": 132,
"name": "Консультации",
"type_id": 100,
"order": 0,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
},
{
"amount_sum": "120000.00",
"category_id": 135,
"category": {
"id": 135,
"name": "Монетизация YouTube-канала",
"type_id": 100,
"order": 3,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
},
{
"amount_sum": "500.40",
"category_id": null,
"category": null,
"localtz_payment_date": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
}
],
"expenses_statistics": [
{
"amount_sum": "70000.00",
"category_id": 138,
"category": {
"id": 138,
"name": "Зарплаты",
"type_id": 200,
"order": 6,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
},
{
"amount_sum": "33000.00",
"category_id": 140,
"category": {
"id": 140,
"name": "Офис",
"type_id": 200,
"order": 8,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
},
{
"amount_sum": "32000.00",
"category_id": 136,
"category": {
"id": 136,
"name": "Аренда",
"type_id": 200,
"order": 4,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
},
{
"amount_sum": "30000.00",
"category_id": 137,
"category": {
"id": 137,
"name": "Маркетинг - Яндекс.Директ",
"type_id": 200,
"order": 5,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
},
{
"amount_sum": "12300.00",
"category_id": 139,
"category": {
"id": 139,
"name": "Сервисы доставки",
"type_id": 200,
"order": 7,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"localtz_payment_date": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
}
],
"members_statistics": [],
"projects_options": [
{
"id": 188,
"name": "Мой первый проект в O!task (демо)",
"slug": "b5fad061-ef75-487c-b2b5-2086581c368a",
"status_id": 100,
"end_at_regular": null,
"localtz_start_at": "2024-06-19T21:44:49+03:00",
"localtz_deleted_at": "2024-06-19T21:44:49+03:00",
"localtz_end_at": "2024-06-19T21:44:49+03:00",
"localtz_end_at_regular": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
}
],
"clients_options": [
{
"id": 86,
"first_name": "O!task",
"full_name": "O!task",
"localtz_deleted_at": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
},
{
"id": 87,
"first_name": "ООО «ТурбоЛаб»",
"full_name": "ООО «ТурбоЛаб»",
"localtz_deleted_at": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
},
{
"id": 88,
"first_name": "Газпром",
"full_name": "Газпром",
"localtz_deleted_at": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
},
{
"id": 89,
"first_name": "ОАО «Ромашка»",
"full_name": "ОАО «Ромашка»",
"localtz_deleted_at": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
},
{
"id": 90,
"first_name": "ИП Сидоров В.А",
"full_name": "ИП Сидоров В.А",
"localtz_deleted_at": "2024-06-19T21:44:49+03:00",
"localtz_created_at": "2024-06-19T21:44:49+03:00",
"localtz_updated_at": "2024-06-19T21:44:49+03:00"
}
]
},
"message": "success"
}
Экспорт платежей
Возвращает .csv файл
Заголовки
Параметры URL
Slug пространства
Параметры запроса
Тип платежа: 100 - Поступление, 200 - Расход
100
200
ID клиента
ID проекта
ID категории
От
От
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/export"
);
const params = {
"type_id": "100",
"client_id": "19",
"project_id": "10",
"category_id": "2",
"start_at": "15.06.2024",
"end_at": "18.06.2024",
};
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());
Скачать пример файла для импорта
Возвращает .csv файл
Заголовки
Параметры URL
Slug пространства
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/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
Импорт платежей
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/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());
{
"success": true,
"data": null,
"message": "success"
}
Обновление платежа
Заголовки
Параметры URL
Slug пространства
Slug платежа
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/d823e13a-b255-431e-b425-6c211c038248/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount": 500.39999999999998,
"category_id": 19,
"client_id": 17,
"description": "Sint exercitationem sed aliquam saepe at.",
"member_id": 10,
"payment_date": "18.06.2024 - 16:07",
"project_id": 3,
"type_id": 200
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"row": {
"id": 226,
"amount": "700.30",
"payment_date": "2024-06-19T18:44:00.000000Z",
"type_id": 100,
"description": null,
"user_id": 18,
"client_id": 89,
"project_id": 188,
"member_id": null,
"slug": "98456f35-49a9-41fe-af28-842a8e10e43b",
"created_at": "2024-06-19T18:44:22.000000Z",
"updated_at": "2024-06-19T18:44:22.000000Z",
"team_id": 35,
"category_id": 132,
"member": null,
"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-19T21:45:27+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"
},
"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-19T18:45:27.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-19T21:45:27+03:00"
},
"category": {
"id": 132,
"name": "Консультации",
"type_id": 100,
"order": 0,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
"client": {
"id": 89,
"first_name": "ОАО «Ромашка»",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": "8 909 777 77 77",
"slug": "55fdd859-c362-4ac3-8014-6baf4d581cfc",
"team_id": 35,
"full_name": "ОАО «Ромашка»",
"income": 20700.299999999999,
"localtz_deleted_at": "2024-06-19T21:45:27+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
"localtz_payment_date": "2024-06-19T21:44:00+03:00",
"localtz_created_at": "2024-06-19T21:44:22+03:00",
"localtz_updated_at": "2024-06-19T21:44:22+03:00"
}
},
"message": "success"
}
Удалить платежи
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"lists": [
1,
2,
3
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Получить список категорий
Заголовки
Параметры URL
Slug пространства
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/categories"
);
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": 132,
"name": "Консультации",
"type_id": 100,
"order": 0,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 133,
"name": "Разработка сайтов",
"type_id": 100,
"order": 1,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 134,
"name": "Внедрение CRM",
"type_id": 100,
"order": 2,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 135,
"name": "Монетизация YouTube-канала",
"type_id": 100,
"order": 3,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 136,
"name": "Аренда",
"type_id": 200,
"order": 4,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 137,
"name": "Маркетинг - Яндекс.Директ",
"type_id": 200,
"order": 5,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 138,
"name": "Зарплаты",
"type_id": 200,
"order": 6,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 139,
"name": "Сервисы доставки",
"type_id": 200,
"order": 7,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
},
{
"id": 140,
"name": "Офис",
"type_id": 200,
"order": 8,
"team_id": 35,
"created_at": "2024-06-11T10:51:40.000000Z",
"updated_at": "2024-06-11T10:51:40.000000Z"
}
],
"message": "success"
}
Создать категорию для финансов
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/categories"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Реклама",
"type_id": 200
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"name": "Новая статья",
"type_id": 100,
"order": 4,
"team_id": 35,
"updated_at": "2024-06-19T18:46:30.000000Z",
"created_at": "2024-06-19T18:46:30.000000Z",
"id": 159
},
"message": "success"
}
Изменить порядок категорий финансов
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/categories/change-sort"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type_id": 100,
"ids": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Обновить категорию финансов
Заголовки
Параметры URL
Slug пространства
ID категории
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/categories/1"
);
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": 159,
"name": "Новая статья (Edited)",
"type_id": 100,
"order": 4,
"team_id": 35,
"created_at": "2024-06-19T18:46:30.000000Z",
"updated_at": "2024-06-19T18:47:05.000000Z"
},
"message": "success"
}
Удалить категорию финансов
Заголовки
Параметры URL
Slug пространства
ID категории
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/payments/categories/1"
);
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"
}
Клиенты
Получить список клиентов
Заголовки
Параметры URL
Slug пространства
Параметры запроса
desc
asc
first_name
phone
income
Страница
Количество клиентов на странице
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/clients"
);
const params = {
"sort_type": "asc",
"sort_field": "first_name",
"query": "ООО",
"page": "5",
"per_page": "10",
};
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": {
"clients": [
{
"id": 86,
"first_name": "O!task",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": null,
"slug": "ab1de9d8-d550-4a05-81ba-5c0f059881fb",
"team_id": 35,
"income": 134000,
"full_name": "O!task",
"localtz_deleted_at": "2024-06-19T21:31:05+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 87,
"first_name": "ООО «ТурбоЛаб»",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": "8 909 999 99 99",
"slug": "91356e24-3355-451a-8889-876955b02d0e",
"team_id": 35,
"income": 80500,
"full_name": "ООО «ТурбоЛаб»",
"localtz_deleted_at": "2024-06-19T21:31:05+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 88,
"first_name": "Газпром",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": "8 909 888 88 88",
"slug": "4be26d4e-183d-46c1-b0aa-a21e42c75d46",
"team_id": 35,
"income": 2000000,
"full_name": "Газпром",
"localtz_deleted_at": "2024-06-19T21:31:05+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 89,
"first_name": "ОАО «Ромашка»",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": "8 909 777 77 77",
"slug": "55fdd859-c362-4ac3-8014-6baf4d581cfc",
"team_id": 35,
"income": 20000,
"full_name": "ОАО «Ромашка»",
"localtz_deleted_at": "2024-06-19T21:31:05+03:00",
"localtz_created_at": "2024-06-11T13:51:40+03:00",
"localtz_updated_at": "2024-06-11T13:51:40+03:00"
},
{
"id": 90,
"first_name": "ИП Сидоров В.А",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": null,
"slug": "3ecf99d9-7a90-44e7-be51-c916192bb69c",
"team_id": 35,
"income": 120000,
"full_name": "ИП Сидоров В.А",
"localtz_deleted_at": "2024-06-19T21:31:05+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": 20,
"to": 5,
"total": 5
}
},
"message": "success"
}
Получить список всех клиентов
Заголовки
Параметры URL
Slug пространства
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/clients/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": 86,
"full_name": "O!task"
},
{
"id": 87,
"full_name": "ООО «ТурбоЛаб»"
},
{
"id": 88,
"full_name": "Газпром"
},
{
"id": 89,
"full_name": "ОАО «Ромашка»"
},
{
"id": 90,
"full_name": "ИП Сидоров В.А"
}
],
"message": "success"
}
Создать клиента
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/clients/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "Клиент",
"phone": "79999999999",
"email": "example@example.example",
"description": "Комментарий"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"row": {
"first_name": "Клиент",
"phone": null,
"email": null,
"description": null,
"team_id": 35,
"slug": "92aa8ec7-716f-4c75-a6c7-168983cee45b",
"id": 97,
"full_name": "Клиент",
"income": 0,
"localtz_deleted_at": "2024-06-19T21:32:06+03:00",
"localtz_created_at": "2024-06-19T21:32:06+03:00",
"localtz_updated_at": "2024-06-19T21:32:06+03:00"
}
},
"message": "success"
}
Экспорт клиентов
Возвращает .csv файл
Заголовки
Параметры URL
Slug пространства
Параметры запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/clients/export"
);
const params = {
"query": "ООО",
};
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());
Скачать пример файла для импорта
Возвращает .csv файл
Заголовки
Параметры URL
Slug пространства
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/clients/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
Импорт клиентов
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/clients/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());
{
"success": true,
"data": null,
"message": "success"
}
Обновить клиента
Заголовки
Параметры URL
Slug пространства
Slug клиента
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/clients/d823e13a-b255-431e-b425-6c211c038248/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "Клиент",
"phone": "79999999999",
"email": "example@example.example",
"description": "Комментарий"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"row": {
"id": 97,
"first_name": "Клиент (Edited)",
"last_name": null,
"middle_name": null,
"description": null,
"email": null,
"phone": null,
"slug": "92aa8ec7-716f-4c75-a6c7-168983cee45b",
"team_id": 35,
"full_name": "Клиент (Edited)",
"income": 0,
"localtz_deleted_at": "2024-06-19T21:33:09+03:00",
"localtz_created_at": "2024-06-19T21:32:06+03:00",
"localtz_updated_at": "2024-06-19T21:33:09+03:00"
}
},
"message": "success"
}
Удалить клиентов
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/clients/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"lists": [
"d823e13a-b255-431e-b425-6c211c038248",
"d823e13a-b255-431e-b425-6c211c038247"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Хранилище
Получить хранилище
Заголовки
Параметры URL
Slug пространства
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/storages"
);
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": 416,
"name": "Мои проекты",
"parent_id": 415,
"type": "folder",
"ordering": null,
"model_type": "App\\Models\\UserTeam",
"model_id": 35,
"extension": null,
"user_id": 18,
"collection": null,
"tag": "closed",
"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/",
"storage": "local",
"storage_data": null,
"slug": "ws-projects-35",
"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"
},
{
"id": 417,
"name": "Без проекта",
"parent_id": 415,
"type": "folder",
"ordering": null,
"model_type": "App\\Models\\UserTeam",
"model_id": 35,
"extension": null,
"user_id": 18,
"collection": null,
"tag": "closed",
"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-without-project-35/",
"storage": "local",
"storage_data": null,
"slug": "ws-without-project-35",
"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"
}
],
"meta": {
"breadcrumbs": [],
"folder": {
"id": 415,
"name": "default",
"parent_id": null,
"type": "filemanager",
"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/ws-00819fb6-1068-4588-9631-f3c8b7063661/",
"storage": "local",
"storage_data": null,
"slug": "580d9b5b-c602-4fd2-9634-6f8d0db3e1a3",
"created_at": "2024-06-11T10:51:38.000000Z",
"updated_at": "2024-06-11T10:51:38.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:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
}
}
},
"message": "success"
}
Создать папку в хранилище
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/storages/media/create-folder"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"currentFolder": "nihil",
"folderNew": "Отчеты"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Загрузка файла в системную папку "Без проекта"
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/storages/media/upload"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"file": [
"saepe"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"data": [
{
"name": "960c2e1b3fd9efd9e90e4dd52feb9b40",
"extension": "jpeg",
"mimes": "image/jpeg",
"src": "b72ae7e0-1bd4-4ad6-9219-a845a5b166cc.jpeg",
"parent_id": 417,
"user_id": 18,
"disk": "yandexcloud",
"type": "file",
"tag": null,
"size": 713233,
"width": null,
"height": null,
"collection": null,
"folder": "/uploads/filemanagers/00819fb6-1068-4588-9631-f3c8b7063661/ws-without-project-35/",
"model_id": 35,
"model_type": "App\\Models\\UserTeam",
"slug": "c4f7ef99-59ff-4c90-80d7-08d7c6897d30",
"updated_at": "2024-06-19T17:46:39.000000Z",
"created_at": "2024-06-19T17:46:39.000000Z",
"id": 462,
"webp": null,
"size_human": {
"B": {
"count": "713233",
"text": {
"ru": {
"short": "Б",
"long": "Байт"
},
"en": {
"short": "B",
"long": "Bytes"
}
}
},
"KB": {
"count": "696,52",
"text": {
"ru": {
"short": "KB",
"long": "Килобайт"
},
"en": {
"short": "KB",
"long": "Kilobytes"
}
}
},
"MB": {
"count": "0,68",
"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": "696,52",
"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": "https://example.example/thumbnail?path=%2Fuploads%2Ffilemanagers%2F00819fb6-1068-4588-9631-f3c8b7063661%2Fws-without-project-35%2Fb72ae7e0-1bd4-4ad6-9219-a845a5b166cc.jpeg",
"localtz_created_at": "2024-06-19T20:46:39+03:00",
"localtz_updated_at": "2024-06-19T20:46:39+03:00"
}
]
},
"message": "success"
}
Скачать несколько файлов или папок
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/storages/media/download-generate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"lists": [
"d823e13a-b255-431e-b425-6c211c038248",
"d823e13a-b255-431e-b425-6c211c038247"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": "https://example.example/download/eaa5548e-690b-4a7b-b96d-92cf0e0b4a0d",
"message": "success"
}
Удалить файлы/папки
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/storages/media/destroy"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"lists": [
"d823e13a-b255-431e-b425-6c211c038248",
"d823e13a-b255-431e-b425-6c211c038247"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Скачать файл
Заголовки
Параметры URL
Slug пространства
Slug файла
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/storages/media/d823e13a-b255-431e-b425-6c211c038248/download"
);
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": "https://example.example/download/e3a5abab-419b-4bdf-a0a8-7955da5c03d9",
"message": "success"
}
Изменить название файла/папки
Заголовки
Параметры URL
Slug пространства
Slug файла
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/storages/media/d823e13a-b255-431e-b425-6c211c038248/editname"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"newName": "consequuntur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Получить содержимое папки
Заголовки
Параметры URL
Slug пространства
Slug папки
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/storages/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": {
"medias": [],
"meta": {
"breadcrumbs": [
{
"id": 415,
"name": "default",
"parent_id": null,
"type": "filemanager",
"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/ws-00819fb6-1068-4588-9631-f3c8b7063661/",
"storage": "local",
"storage_data": null,
"slug": "580d9b5b-c602-4fd2-9634-6f8d0db3e1a3",
"created_at": "2024-06-11T10:51:38.000000Z",
"updated_at": "2024-06-11T10:51:38.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:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
}
],
"folder": {
"id": 460,
"name": "Новая папка (Edited)",
"parent_id": 415,
"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": "b42529bf-1b22-4c02-bcc4-3d6a13a80ab2",
"mimes": null,
"disk": "yandexcloud",
"size": null,
"folder": "/uploads/filemanagers/ws-00819fb6-1068-4588-9631-f3c8b7063661/b42529bf-1b22-4c02-bcc4-3d6a13a80ab2/",
"storage": "local",
"storage_data": null,
"slug": "b42529bf-1b22-4c02-bcc4-3d6a13a80ab2",
"created_at": "2024-06-19T17:45:25.000000Z",
"updated_at": "2024-06-19T17:49:24.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-19T20:45:25+03:00",
"localtz_updated_at": "2024-06-19T20:49:24+03:00"
}
}
},
"message": "success"
}
Загрузить файл в папку
Заголовки
Параметры URL
Slug пространства
Slug папки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/storages/d823e13a-b255-431e-b425-6c211c038248/upload"
);
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());
{
"success": true,
"data": {
"data": [
{
"name": "Мой первый блокнот в O!task (1) (1)",
"extension": "pdf",
"mimes": "application/pdf",
"src": "33677e36-6e21-4c33-9c9c-e53079047a2d.pdf",
"parent_id": 460,
"user_id": 18,
"disk": "yandexcloud",
"type": "file",
"tag": null,
"size": 878473,
"width": null,
"height": null,
"collection": null,
"folder": "/uploads/filemanagers/ws-00819fb6-1068-4588-9631-f3c8b7063661/b42529bf-1b22-4c02-bcc4-3d6a13a80ab2/",
"model_id": 35,
"model_type": "App\\Models\\UserTeam",
"slug": "4e1aad8c-dc0e-432f-89ea-4a0aef8e0149",
"updated_at": "2024-06-19T17:50:49.000000Z",
"created_at": "2024-06-19T17:50:49.000000Z",
"id": 463,
"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:50:49+03:00",
"localtz_updated_at": "2024-06-19T20:50:49+03:00"
}
],
"expended_storage": "4.53"
},
"message": "success"
}
Команда
Получить пространства пользователя
Заголовки
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/teams"
);
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": {
"teams": [
{
"id": 35,
"name": "Мое пространство",
"role": {
"id": 1,
"name": "Администратор",
"slug": "admin",
"description": "Полный доступ. Может настраивать роли, видит и управляет всем, что происходит в системе",
"team_id": null,
"is_system": true,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"groups": [
{
"id": 1,
"name": "Проекты",
"slug": "projects",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 1
}
},
{
"id": 2,
"name": "Финансы",
"slug": "finances",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 2
}
},
{
"id": 3,
"name": "Клиенты",
"slug": "clients",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 3
}
},
{
"id": 4,
"name": "Хранилище",
"slug": "storage",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 4
}
},
{
"id": 5,
"name": "Команда",
"slug": "team",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 5
}
}
],
"permissions": [
{
"id": 1,
"name": "Просмотр всех проектов",
"slug": "projects-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 0,
"pivot": {
"role_id": 1,
"permission_id": 1
}
},
{
"id": 2,
"name": "Добавление проектов",
"slug": "projects-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 1,
"pivot": {
"role_id": 1,
"permission_id": 2
}
},
{
"id": 3,
"name": "Изменение настроек проекта",
"slug": "projects-change-settings",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 2,
"pivot": {
"role_id": 1,
"permission_id": 3
}
},
{
"id": 4,
"name": "Удаление проектов",
"slug": "projects-delete",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 3,
"pivot": {
"role_id": 1,
"permission_id": 4
}
},
{
"id": 5,
"name": "Просмотр и управление финансами проектов",
"slug": "projects-finances",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 4,
"pivot": {
"role_id": 1,
"permission_id": 5
}
},
{
"id": 6,
"name": "Просмотр и управление блокнотами проектов",
"slug": "projects-notes",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 5,
"pivot": {
"role_id": 1,
"permission_id": 6
}
},
{
"id": 7,
"name": "Просмотр файлов проектов",
"slug": "projects-files-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 6,
"pivot": {
"role_id": 1,
"permission_id": 7
}
},
{
"id": 8,
"name": "Редактирование файлов проектов",
"slug": "projects-files-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 7,
"pivot": {
"role_id": 1,
"permission_id": 8
}
},
{
"id": 9,
"name": "Просмотр и управление приложениями проектов",
"slug": "projects-applications",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 8,
"pivot": {
"role_id": 1,
"permission_id": 9
}
},
{
"id": 10,
"name": "Управления полями пользователя",
"slug": "tasks-custom-fields-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 9,
"pivot": {
"role_id": 1,
"permission_id": 10
}
},
{
"id": 11,
"name": "Добавление задач",
"slug": "projects-tasks-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 10,
"pivot": {
"role_id": 1,
"permission_id": 11
}
},
{
"id": 12,
"name": "Редактирование задач",
"slug": "projects-tasks-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 11,
"pivot": {
"role_id": 1,
"permission_id": 12
}
},
{
"id": 13,
"name": "Удаление задач",
"slug": "projects-tasks-delete",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 12,
"pivot": {
"role_id": 1,
"permission_id": 13
}
},
{
"id": 14,
"name": "Только просмотр",
"slug": "finances-view",
"group_id": 2,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 13,
"pivot": {
"role_id": 1,
"permission_id": 14
}
},
{
"id": 15,
"name": "Редактирование и просмотр раздела",
"slug": "finances-edit",
"group_id": 2,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 14,
"pivot": {
"role_id": 1,
"permission_id": 15
}
},
{
"id": 16,
"name": "Только просмотр",
"slug": "clients-view",
"group_id": 3,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 15,
"pivot": {
"role_id": 1,
"permission_id": 16
}
},
{
"id": 17,
"name": "Редактирование раздела",
"slug": "clients-edit",
"group_id": 3,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 16,
"pivot": {
"role_id": 1,
"permission_id": 17
}
},
{
"id": 18,
"name": "Только просмотр файлов",
"slug": "storage-view",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 17,
"pivot": {
"role_id": 1,
"permission_id": 18
}
},
{
"id": 19,
"name": "Добавление файлов",
"slug": "storage-add",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 18,
"pivot": {
"role_id": 1,
"permission_id": 19
}
},
{
"id": 20,
"name": "Удаление файлов",
"slug": "storage-delete",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 19,
"pivot": {
"role_id": 1,
"permission_id": 20
}
},
{
"id": 21,
"name": "Только просмотр",
"slug": "team-view",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 20,
"pivot": {
"role_id": 1,
"permission_id": 21
}
},
{
"id": 22,
"name": "Приглашение участников в команду",
"slug": "team-invite",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 21,
"pivot": {
"role_id": 1,
"permission_id": 22
}
},
{
"id": 23,
"name": "Редактирование данных участников",
"slug": "team-edit",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 22,
"pivot": {
"role_id": 1,
"permission_id": 23
}
},
{
"id": 24,
"name": "Исключение из команды",
"slug": "team-exclude",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 23,
"pivot": {
"role_id": 1,
"permission_id": 24
}
},
{
"id": 25,
"name": "Просмотр ролей",
"slug": "roles-view",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 24,
"pivot": {
"role_id": 1,
"permission_id": 25
}
},
{
"id": 26,
"name": "Добавление ролей",
"slug": "roles-add",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 25,
"pivot": {
"role_id": 1,
"permission_id": 26
}
},
{
"id": 27,
"name": "Редактирование ролей",
"slug": "roles-edit",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 26,
"pivot": {
"role_id": 1,
"permission_id": 27
}
},
{
"id": 28,
"name": "Удаление ролей",
"slug": "roles-delete",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 27,
"pivot": {
"role_id": 1,
"permission_id": 28
}
}
]
},
"slug": "00819fb6-1068-4588-9631-f3c8b7063661",
"picture": null,
"is_owner": true,
"owner_email": "example@example.example",
"created_at": "2024-06-11T10:51:38.000000Z",
"tasks_custom_fields": [
{
"id": 83,
"team_id": 35,
"name": "Новое поле (Edited)",
"type": "text",
"show_in_cards": true,
"always_show_in_task": true,
"created_at": "2024-06-19T18:25:06.000000Z",
"updated_at": "2024-06-19T18:25:57.000000Z",
"order": 0
},
{
"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
},
{
"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
},
{
"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
},
{
"id": 76,
"team_id": 35,
"name": "Номер договора",
"type": "number",
"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": 4
}
],
"show_package_expires": false
}
],
"default_team": "00819fb6-1068-4588-9631-f3c8b7063661"
},
"message": "success"
}
Получить приглашения в команду
Заголовки
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/teams/requests"
);
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": 17,
"owner_id": 9,
"owner_full_name": "q (Мое пространство)",
"owner_email": "q@q.q",
"team_id": 10,
"team_hash": "1a7c9c6b-1357-404b-8e8d-5cfd596b5f7e",
"status": "200",
"status_text": "Приглашение отправлено",
"created_at": "2024-06-14T13:31:11.000000Z",
"avatar": "http://example.com/path/to/avatar.jpg"
}
],
"message": "success"
}
Принять приглашение в команду
Заголовки
Параметры URL
ID приглашения
const url = new URL(
"https://api.otask.ru/api/v1/teams/requests/17/accept"
);
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"
}
Отклонить приглашение в команду
Заголовки
Параметры URL
ID приглашения
const url = new URL(
"https://api.otask.ru/api/v1/teams/requests/17/cancel"
);
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"
}
Создать пространство
Заголовки
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "enim"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"id": 43,
"name": "Новое пространство",
"role": {
"id": 1,
"name": "Администратор",
"slug": "admin",
"description": "Полный доступ. Может настраивать роли, видит и управляет всем, что происходит в системе",
"team_id": null,
"is_system": true,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"groups": [
{
"id": 1,
"name": "Проекты",
"slug": "projects",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 1
}
},
{
"id": 2,
"name": "Финансы",
"slug": "finances",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 2
}
},
{
"id": 3,
"name": "Клиенты",
"slug": "clients",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 3
}
},
{
"id": 4,
"name": "Хранилище",
"slug": "storage",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 4
}
},
{
"id": 5,
"name": "Команда",
"slug": "team",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 5
}
}
],
"permissions": [
{
"id": 1,
"name": "Просмотр всех проектов",
"slug": "projects-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 0,
"pivot": {
"role_id": 1,
"permission_id": 1
}
},
{
"id": 2,
"name": "Добавление проектов",
"slug": "projects-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 1,
"pivot": {
"role_id": 1,
"permission_id": 2
}
},
{
"id": 3,
"name": "Изменение настроек проекта",
"slug": "projects-change-settings",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 2,
"pivot": {
"role_id": 1,
"permission_id": 3
}
},
{
"id": 4,
"name": "Удаление проектов",
"slug": "projects-delete",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 3,
"pivot": {
"role_id": 1,
"permission_id": 4
}
},
{
"id": 5,
"name": "Просмотр и управление финансами проектов",
"slug": "projects-finances",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 4,
"pivot": {
"role_id": 1,
"permission_id": 5
}
},
{
"id": 6,
"name": "Просмотр и управление блокнотами проектов",
"slug": "projects-notes",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 5,
"pivot": {
"role_id": 1,
"permission_id": 6
}
},
{
"id": 7,
"name": "Просмотр файлов проектов",
"slug": "projects-files-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 6,
"pivot": {
"role_id": 1,
"permission_id": 7
}
},
{
"id": 8,
"name": "Редактирование файлов проектов",
"slug": "projects-files-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 7,
"pivot": {
"role_id": 1,
"permission_id": 8
}
},
{
"id": 9,
"name": "Просмотр и управление приложениями проектов",
"slug": "projects-applications",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 8,
"pivot": {
"role_id": 1,
"permission_id": 9
}
},
{
"id": 10,
"name": "Управления полями пользователя",
"slug": "tasks-custom-fields-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 9,
"pivot": {
"role_id": 1,
"permission_id": 10
}
},
{
"id": 11,
"name": "Добавление задач",
"slug": "projects-tasks-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 10,
"pivot": {
"role_id": 1,
"permission_id": 11
}
},
{
"id": 12,
"name": "Редактирование задач",
"slug": "projects-tasks-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 11,
"pivot": {
"role_id": 1,
"permission_id": 12
}
},
{
"id": 13,
"name": "Удаление задач",
"slug": "projects-tasks-delete",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 12,
"pivot": {
"role_id": 1,
"permission_id": 13
}
},
{
"id": 14,
"name": "Только просмотр",
"slug": "finances-view",
"group_id": 2,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 13,
"pivot": {
"role_id": 1,
"permission_id": 14
}
},
{
"id": 15,
"name": "Редактирование и просмотр раздела",
"slug": "finances-edit",
"group_id": 2,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 14,
"pivot": {
"role_id": 1,
"permission_id": 15
}
},
{
"id": 16,
"name": "Только просмотр",
"slug": "clients-view",
"group_id": 3,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 15,
"pivot": {
"role_id": 1,
"permission_id": 16
}
},
{
"id": 17,
"name": "Редактирование раздела",
"slug": "clients-edit",
"group_id": 3,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 16,
"pivot": {
"role_id": 1,
"permission_id": 17
}
},
{
"id": 18,
"name": "Только просмотр файлов",
"slug": "storage-view",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 17,
"pivot": {
"role_id": 1,
"permission_id": 18
}
},
{
"id": 19,
"name": "Добавление файлов",
"slug": "storage-add",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 18,
"pivot": {
"role_id": 1,
"permission_id": 19
}
},
{
"id": 20,
"name": "Удаление файлов",
"slug": "storage-delete",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 19,
"pivot": {
"role_id": 1,
"permission_id": 20
}
},
{
"id": 21,
"name": "Только просмотр",
"slug": "team-view",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 20,
"pivot": {
"role_id": 1,
"permission_id": 21
}
},
{
"id": 22,
"name": "Приглашение участников в команду",
"slug": "team-invite",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 21,
"pivot": {
"role_id": 1,
"permission_id": 22
}
},
{
"id": 23,
"name": "Редактирование данных участников",
"slug": "team-edit",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 22,
"pivot": {
"role_id": 1,
"permission_id": 23
}
},
{
"id": 24,
"name": "Исключение из команды",
"slug": "team-exclude",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 23,
"pivot": {
"role_id": 1,
"permission_id": 24
}
},
{
"id": 25,
"name": "Просмотр ролей",
"slug": "roles-view",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 24,
"pivot": {
"role_id": 1,
"permission_id": 25
}
},
{
"id": 26,
"name": "Добавление ролей",
"slug": "roles-add",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 25,
"pivot": {
"role_id": 1,
"permission_id": 26
}
},
{
"id": 27,
"name": "Редактирование ролей",
"slug": "roles-edit",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 26,
"pivot": {
"role_id": 1,
"permission_id": 27
}
},
{
"id": 28,
"name": "Удаление ролей",
"slug": "roles-delete",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 27,
"pivot": {
"role_id": 1,
"permission_id": 28
}
}
]
},
"slug": "ad7ffa6c-89db-4b82-9bfd-222b9ecf2799",
"picture_html": null,
"limits": {
"team_members": 2
},
"is_owner": true,
"tasks_custom_fields": [],
"is_default_package": true,
"show_package_expires": false
},
"message": "success"
}
Изменить порядок пространств
Заголовки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/change-position"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ids": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Получить доски проектов и статусы задач
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"except_board_ids": [
1,
2,
3
],
"except_column_ids": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"boards": [
{
"id": 185,
"slug": "707d32e8-a6c2-491d-85f2-209e54a01392",
"name": "Первая доска",
"order": 0,
"project_id": 198,
"team_id": 35,
"created_at": "2024-06-19T17:24:49.000000Z",
"updated_at": "2024-06-19T17:24:49.000000Z"
},
{
"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"
},
{
"id": 175,
"slug": "9e2ca896-5bee-48fb-835c-b8c1b6590f6d",
"name": "Первая доска",
"order": 1,
"project_id": 188,
"team_id": 35,
"created_at": "2024-06-11T10:51:38.000000Z",
"updated_at": "2024-06-19T17:33:24.000000Z"
}
],
"task_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": 917,
"name": "Сделать",
"color": "#32c3e3",
"order": 0,
"is_system": true,
"type": "new",
"board_id": 185,
"team_id": 35,
"created_at": "2024-06-19T17:24:49.000000Z",
"updated_at": "2024-06-19T17:24:49.000000Z"
},
{
"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": 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": 918,
"name": "В работе",
"color": "#ffa639",
"order": 1,
"is_system": false,
"type": null,
"board_id": 185,
"team_id": 35,
"created_at": "2024-06-19T17:24:49.000000Z",
"updated_at": "2024-06-19T17:24:49.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": 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": 919,
"name": "На проверке",
"color": "#ff576a",
"order": 2,
"is_system": false,
"type": null,
"board_id": 185,
"team_id": 35,
"created_at": "2024-06-19T17:24:49.000000Z",
"updated_at": "2024-06-19T17:24:49.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": 925,
"name": "Новый статус (Edited)",
"color": "#2868DCCC",
"order": 4,
"is_system": false,
"type": null,
"board_id": 175,
"team_id": 35,
"created_at": "2024-06-19T17:54:04.000000Z",
"updated_at": "2024-06-19T17:55:43.000000Z"
},
{
"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"
},
{
"id": 920,
"name": "Завершено",
"color": "#42b525",
"order": 3,
"is_system": true,
"type": "completed",
"board_id": 185,
"team_id": 35,
"created_at": "2024-06-19T17:24:49.000000Z",
"updated_at": "2024-06-19T17:24:49.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"
}
]
},
"message": "success"
}
Получить статистику пространства
Заголовки
Параметры URL
Slug пространства
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/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": [
{
"title": "Проектов",
"slug": "projects",
"value": 1
},
{
"title": "Задач",
"slug": "tasks",
"value": 9
},
{
"title": "Команда",
"slug": "members",
"value": 2
}
],
"message": "success"
}
Глобальный поиск
Заголовки
Параметры URL
Slug пространства
Параметры запроса
Значение для поиска
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/global-search"
);
const params = {
"query": "один",
};
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": [
{
"id": 198,
"slug": "a15a3efc-de69-4598-9081-f15c66013616",
"name": "Новый проект",
"type": "project"
},
{
"id": 188,
"slug": "b5fad061-ef75-487c-b2b5-2086581c368a",
"name": "Мой первый проект в O!task (демо)",
"type": "project"
},
{
"id": 601,
"slug": "bc07f6a0-eed8-4537-a834-bd63de492e16",
"name": "(Копия) Задача без приоритета",
"type": "task"
},
{
"id": 600,
"slug": "de427c4d-a5b5-4d64-8abe-25de5d19aea6",
"name": "Новая подзадача",
"type": "task"
},
{
"id": 599,
"slug": "2e44d1ab-f223-46c6-a3b4-78e026d6af79",
"name": "Новая задача",
"type": "task"
},
{
"id": 569,
"slug": "da86a512-e3c6-4e75-9c82-50fa7cbd83a0",
"name": "Моя первая задача в O!task",
"type": "task"
},
{
"id": 573,
"slug": "ccaf01e1-1f6c-41f4-acec-64deca223af1",
"name": "Задача с критическим приоритетом",
"type": "task"
},
{
"id": 570,
"slug": "4cd6fa71-af1b-485d-8df9-8c846c68c112",
"name": "Выполненная подзадача",
"type": "task"
},
{
"id": 571,
"slug": "a2ca118f-3e0f-4fb8-95d1-fe6dfd3beff9",
"name": "Вторая выполненная подзадача",
"type": "task"
},
{
"id": 572,
"slug": "e5994fcd-2757-4b27-b94a-0dcf68ffd91a",
"name": "Подзадача",
"type": "task"
},
{
"id": 574,
"slug": "fe7b65d2-a679-48d5-a88f-a770a722357e",
"name": "Задача без приоритета",
"type": "task"
}
],
"message": "success"
}
Удалить пространство
Заголовки
Параметры URL
Slug пространства
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/destroy"
);
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"
}
Обновить пространство
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'rem');
body.append('picture', document.querySelector('input[name="picture"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());
{
"success": true,
"data": {
"picture": "https://example.com/picture.jpg",
"name": "new"
},
"message": "success"
}
Получить данные сводки
Заголовки
Параметры URL
Slug пространства
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/panel/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": {
"projectCount": 1,
"moneyIncome": "2398500.40",
"clients": 5,
"availableStorage": "250.00",
"expendedStorage": "1.33"
},
"message": "success"
}
Покинуть пространство
Заголовки
Параметры URL
Slug пространства
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/leave"
);
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": null,
"message": "success"
}
Получить список участников пространства/приглашенных пользователей с пагинацией
Заголовки
Параметры URL
Slug пространства
Параметры запроса
Страница
Количество записей на странице
Slug роли
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/members"
);
const params = {
"page": "1",
"per_page": "20",
"role": "admin",
};
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": {
"list": [
{
"id": 18,
"user_id": 18,
"full_name": "example",
"email": "example@example.example",
"hash": "0b83697c-528b-492a-a776-f33079e17ea9",
"status": 100,
"status_text": "Я - организатор",
"is_owner": 1,
"avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f@2x.jpg",
"role": {
"id": 1,
"name": "Администратор",
"slug": "admin",
"description": "Полный доступ. Может настраивать роли, видит и управляет всем, что происходит в системе",
"team_id": null,
"is_system": true,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z"
},
"role_slug": "admin",
"position": null,
"last_activity": "2024-06-19T18:53:45.000000Z",
"notifications": [
"email",
"database"
]
},
{
"id": 20,
"user_id": 20,
"first_name": null,
"last_name": null,
"full_name": "test",
"full_name_short": "test",
"email": "test@test.test",
"status": "300",
"hash": "298103e1-8748-43fe-95fb-b284f903a74d",
"status_text": "В команде",
"status_html": "<div class=\"badge badge-success\">В команде</div>",
"created_at": "2024-06-19T18:41:32.000000Z",
"is_owner": 0,
"avatar": "https://example.example/storage/uploads/users/4f5fc703-ce49-4cfa-abf7-8d023637aae5@2x.jpg",
"isonline": false,
"role": {
"id": 3,
"name": "Наблюдатель",
"slug": "observer",
"description": "Может просматривать проекты и задачи в которые он добавлен",
"team_id": null,
"is_system": true,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z"
},
"role_slug": "observer",
"position": null,
"comment": "",
"last_activity": "2024-06-19T18:41:50.000000Z",
"notifications": [
"email",
"database"
]
}
],
"url": "https://click.otask.gq/kmfyfvko",
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 20,
"total": 2,
"from": 1,
"to": 2
},
"is_has_max_team_members": true,
"max_team_members": 2,
"options": {
"roles": [
{
"id": 1,
"name": "Администратор",
"slug": "admin",
"description": "Полный доступ. Может настраивать роли, видит и управляет всем, что происходит в системе",
"team_id": null,
"is_system": true,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z"
},
{
"id": 3,
"name": "Наблюдатель",
"slug": "observer",
"description": "Может просматривать проекты и задачи в которые он добавлен",
"team_id": null,
"is_system": true,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z"
}
]
}
},
"message": "success"
}
Получить список всех активных участников пространства
Заголовки
Параметры URL
Slug пространства
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/members/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": [
{
"id": 18,
"user_id": 18,
"full_name": "example",
"email": "example@example.example",
"hash": "0b83697c-528b-492a-a776-f33079e17ea9",
"status": 100,
"status_text": "Я - организатор",
"is_owner": 1,
"avatar": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f@2x.jpg"
},
{
"id": 20,
"user_id": 20,
"first_name": null,
"last_name": null,
"full_name": "test",
"full_name_short": "test",
"email": "test@test.test",
"status": "300",
"hash": "298103e1-8748-43fe-95fb-b284f903a74d",
"status_text": "В команде",
"created_at": "2024-06-19T18:41:32.000000Z",
"is_owner": 0,
"avatar": "https://example.example/storage/uploads/users/4f5fc703-ce49-4cfa-abf7-8d023637aae5@2x.jpg",
"isonline": false
}
],
"message": "success"
}
Изменить роль участника
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/members/change-role"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"member_id": 1,
"role_id": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"id": 20,
"first_name": null,
"last_name": null,
"middle_name": null,
"email": "test@test.test",
"sex": null,
"created_at": "2024-06-19T18:41:32.000000Z",
"last_activity": "2024-06-19T18:41:50.000000Z",
"currency_id": null,
"position": null,
"full_name": "test",
"full_name_short": "test",
"isonline": false,
"avatar": "https://example.example/storage/uploads/users/4f5fc703-ce49-4cfa-abf7-8d023637aae5.jpg",
"localtz_created_at": "2024-06-19T21:41:32+03:00",
"localtz_updated_at": "2024-06-19T21:41:50+03:00",
"role": {
"id": 2,
"name": "Участник",
"slug": "member",
"description": "Умеет всё что и администратор, кроме настроек и оплаты",
"team_id": null,
"is_system": true,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z"
}
},
"message": "success"
}
Пригласить пользователей в пространство
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/members/invite"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"emails": [
"mail1@mail.ru",
"mail2@mail.ru"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Экспорт участников команды
Возвращает .csv файл
Заголовки
Параметры URL
Slug пространства
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/members/export"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Обновить информацию участника команды
Заголовки
Параметры URL
Slug пространства
ID участника команды
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/members/1/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "Иван",
"last_name": "Иванов",
"position": "Разработчик",
"role_id": 1,
"comment": "Номер телефона - 79999999999"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"id": 20,
"user_id": 20,
"first_name": "Name",
"last_name": null,
"full_name": "Name",
"full_name_short": "Name",
"email": "test@test.test",
"status": "300",
"hash": "298103e1-8748-43fe-95fb-b284f903a74d",
"status_text": "В команде",
"status_html": "<div class=\"badge badge-success\">В команде</div>",
"created_at": "2024-06-19T18:41:32.000000Z",
"is_owner": 0,
"avatar": "https://example.example/storage/uploads/users/4f5fc703-ce49-4cfa-abf7-8d023637aae5@2x.jpg",
"isonline": false,
"role": {
"id": 2,
"name": "Участник",
"slug": "member",
"description": "Умеет всё что и администратор, кроме настроек и оплаты",
"team_id": null,
"is_system": true,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z"
},
"role_slug": "member",
"position": "Разработчик",
"comment": "",
"last_activity": "2024-06-19T18:41:50.000000Z",
"notifications": [
"email",
"database"
]
},
"message": "success"
}
Удалить пользователя из пространства
Заголовки
Параметры URL
Slug пространства
ID участника команды
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/members/1/destroy"
);
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"
}
Отклонить ожидающего пользователя
Заголовки
Параметры URL
Slug пространства
ID участника команды
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/members/1/cancel"
);
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"
}
Принять ожидающего пользователя
Заголовки
Параметры URL
Slug пространства
ID участника команды
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/members/1/accept"
);
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"
}
Отменить приглашение
Заголовки
Параметры URL
Slug пространства
ID приглашения
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/members/1/invite"
);
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"
}
Получить информацию об участнике команды
Заголовки
Параметры URL
Slug пространства
ID участника
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/members/1/info"
);
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": 20,
"user_id": 20,
"first_name": "Name",
"last_name": null,
"full_name": "Name",
"full_name_short": "Name",
"email": "test@test.test",
"status": "300",
"hash": "298103e1-8748-43fe-95fb-b284f903a74d",
"status_text": "В команде",
"status_html": "<div class=\"badge badge-success\">В команде</div>",
"created_at": "2024-06-19T18:41:32.000000Z",
"is_owner": 0,
"avatar": "https://example.example/storage/uploads/users/4f5fc703-ce49-4cfa-abf7-8d023637aae5@2x.jpg",
"isonline": false,
"role": {
"id": 2,
"name": "Участник",
"slug": "member",
"description": "Умеет всё что и администратор, кроме настроек и оплаты",
"team_id": null,
"is_system": true,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z"
},
"role_slug": "member",
"position": "Разработчик",
"comment": "",
"last_activity": "2024-06-19T18:41:50.000000Z",
"notifications": []
},
"message": "success"
}
Получить список ролей пространства
Заголовки
Параметры URL
Slug пространства
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/roles"
);
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": {
"groups": [
{
"id": 1,
"name": "Проекты",
"slug": "projects",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"permissions": [
{
"id": 1,
"name": "Просмотр всех проектов",
"slug": "projects-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 0
},
{
"id": 2,
"name": "Добавление проектов",
"slug": "projects-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 1
},
{
"id": 3,
"name": "Изменение настроек проекта",
"slug": "projects-change-settings",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 2
},
{
"id": 4,
"name": "Удаление проектов",
"slug": "projects-delete",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 3
},
{
"id": 5,
"name": "Просмотр и управление финансами проектов",
"slug": "projects-finances",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 4
},
{
"id": 6,
"name": "Просмотр и управление блокнотами проектов",
"slug": "projects-notes",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 5
},
{
"id": 7,
"name": "Просмотр файлов проектов",
"slug": "projects-files-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 6
},
{
"id": 8,
"name": "Редактирование файлов проектов",
"slug": "projects-files-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 7
},
{
"id": 9,
"name": "Просмотр и управление приложениями проектов",
"slug": "projects-applications",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 8
},
{
"id": 10,
"name": "Управления полями пользователя",
"slug": "tasks-custom-fields-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 9
},
{
"id": 11,
"name": "Добавление задач",
"slug": "projects-tasks-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 10
},
{
"id": 12,
"name": "Редактирование задач",
"slug": "projects-tasks-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 11
},
{
"id": 13,
"name": "Удаление задач",
"slug": "projects-tasks-delete",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 12
}
]
},
{
"id": 2,
"name": "Финансы",
"slug": "finances",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"permissions": [
{
"id": 14,
"name": "Только просмотр",
"slug": "finances-view",
"group_id": 2,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 13
},
{
"id": 15,
"name": "Редактирование и просмотр раздела",
"slug": "finances-edit",
"group_id": 2,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 14
}
]
},
{
"id": 3,
"name": "Клиенты",
"slug": "clients",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"permissions": [
{
"id": 16,
"name": "Только просмотр",
"slug": "clients-view",
"group_id": 3,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 15
},
{
"id": 17,
"name": "Редактирование раздела",
"slug": "clients-edit",
"group_id": 3,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 16
}
]
},
{
"id": 4,
"name": "Хранилище",
"slug": "storage",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"permissions": [
{
"id": 18,
"name": "Только просмотр файлов",
"slug": "storage-view",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 17
},
{
"id": 19,
"name": "Добавление файлов",
"slug": "storage-add",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 18
},
{
"id": 20,
"name": "Удаление файлов",
"slug": "storage-delete",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 19
}
]
},
{
"id": 5,
"name": "Команда",
"slug": "team",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"permissions": [
{
"id": 21,
"name": "Только просмотр",
"slug": "team-view",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 20
},
{
"id": 22,
"name": "Приглашение участников в команду",
"slug": "team-invite",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 21
},
{
"id": 23,
"name": "Редактирование данных участников",
"slug": "team-edit",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 22
},
{
"id": 24,
"name": "Исключение из команды",
"slug": "team-exclude",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 23
},
{
"id": 25,
"name": "Просмотр ролей",
"slug": "roles-view",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 24
},
{
"id": 26,
"name": "Добавление ролей",
"slug": "roles-add",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 25
},
{
"id": 27,
"name": "Редактирование ролей",
"slug": "roles-edit",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 26
},
{
"id": 28,
"name": "Удаление ролей",
"slug": "roles-delete",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 27
}
]
}
],
"roles": [
{
"id": 1,
"name": "Администратор",
"slug": "admin",
"description": "Полный доступ. Может настраивать роли, видит и управляет всем, что происходит в системе",
"team_id": null,
"is_system": true,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"users_count": 0,
"permissions": [
{
"id": 1,
"name": "Просмотр всех проектов",
"slug": "projects-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 0,
"pivot": {
"role_id": 1,
"permission_id": 1
}
},
{
"id": 2,
"name": "Добавление проектов",
"slug": "projects-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 1,
"pivot": {
"role_id": 1,
"permission_id": 2
}
},
{
"id": 3,
"name": "Изменение настроек проекта",
"slug": "projects-change-settings",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 2,
"pivot": {
"role_id": 1,
"permission_id": 3
}
},
{
"id": 4,
"name": "Удаление проектов",
"slug": "projects-delete",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 3,
"pivot": {
"role_id": 1,
"permission_id": 4
}
},
{
"id": 5,
"name": "Просмотр и управление финансами проектов",
"slug": "projects-finances",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 4,
"pivot": {
"role_id": 1,
"permission_id": 5
}
},
{
"id": 6,
"name": "Просмотр и управление блокнотами проектов",
"slug": "projects-notes",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 5,
"pivot": {
"role_id": 1,
"permission_id": 6
}
},
{
"id": 7,
"name": "Просмотр файлов проектов",
"slug": "projects-files-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 6,
"pivot": {
"role_id": 1,
"permission_id": 7
}
},
{
"id": 8,
"name": "Редактирование файлов проектов",
"slug": "projects-files-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 7,
"pivot": {
"role_id": 1,
"permission_id": 8
}
},
{
"id": 9,
"name": "Просмотр и управление приложениями проектов",
"slug": "projects-applications",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 8,
"pivot": {
"role_id": 1,
"permission_id": 9
}
},
{
"id": 10,
"name": "Управления полями пользователя",
"slug": "tasks-custom-fields-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 9,
"pivot": {
"role_id": 1,
"permission_id": 10
}
},
{
"id": 11,
"name": "Добавление задач",
"slug": "projects-tasks-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 10,
"pivot": {
"role_id": 1,
"permission_id": 11
}
},
{
"id": 12,
"name": "Редактирование задач",
"slug": "projects-tasks-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 11,
"pivot": {
"role_id": 1,
"permission_id": 12
}
},
{
"id": 13,
"name": "Удаление задач",
"slug": "projects-tasks-delete",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 12,
"pivot": {
"role_id": 1,
"permission_id": 13
}
},
{
"id": 14,
"name": "Только просмотр",
"slug": "finances-view",
"group_id": 2,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 13,
"pivot": {
"role_id": 1,
"permission_id": 14
}
},
{
"id": 15,
"name": "Редактирование и просмотр раздела",
"slug": "finances-edit",
"group_id": 2,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 14,
"pivot": {
"role_id": 1,
"permission_id": 15
}
},
{
"id": 16,
"name": "Только просмотр",
"slug": "clients-view",
"group_id": 3,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 15,
"pivot": {
"role_id": 1,
"permission_id": 16
}
},
{
"id": 17,
"name": "Редактирование раздела",
"slug": "clients-edit",
"group_id": 3,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 16,
"pivot": {
"role_id": 1,
"permission_id": 17
}
},
{
"id": 18,
"name": "Только просмотр файлов",
"slug": "storage-view",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 17,
"pivot": {
"role_id": 1,
"permission_id": 18
}
},
{
"id": 19,
"name": "Добавление файлов",
"slug": "storage-add",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 18,
"pivot": {
"role_id": 1,
"permission_id": 19
}
},
{
"id": 20,
"name": "Удаление файлов",
"slug": "storage-delete",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 19,
"pivot": {
"role_id": 1,
"permission_id": 20
}
},
{
"id": 21,
"name": "Только просмотр",
"slug": "team-view",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 20,
"pivot": {
"role_id": 1,
"permission_id": 21
}
},
{
"id": 22,
"name": "Приглашение участников в команду",
"slug": "team-invite",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 21,
"pivot": {
"role_id": 1,
"permission_id": 22
}
},
{
"id": 23,
"name": "Редактирование данных участников",
"slug": "team-edit",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 22,
"pivot": {
"role_id": 1,
"permission_id": 23
}
},
{
"id": 24,
"name": "Исключение из команды",
"slug": "team-exclude",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 23,
"pivot": {
"role_id": 1,
"permission_id": 24
}
},
{
"id": 25,
"name": "Просмотр ролей",
"slug": "roles-view",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 24,
"pivot": {
"role_id": 1,
"permission_id": 25
}
},
{
"id": 26,
"name": "Добавление ролей",
"slug": "roles-add",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 25,
"pivot": {
"role_id": 1,
"permission_id": 26
}
},
{
"id": 27,
"name": "Редактирование ролей",
"slug": "roles-edit",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 26,
"pivot": {
"role_id": 1,
"permission_id": 27
}
},
{
"id": 28,
"name": "Удаление ролей",
"slug": "roles-delete",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 27,
"pivot": {
"role_id": 1,
"permission_id": 28
}
}
],
"groups": [
{
"id": 1,
"name": "Проекты",
"slug": "projects",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 1
}
},
{
"id": 2,
"name": "Финансы",
"slug": "finances",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 2
}
},
{
"id": 3,
"name": "Клиенты",
"slug": "clients",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 3
}
},
{
"id": 4,
"name": "Хранилище",
"slug": "storage",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 4
}
},
{
"id": 5,
"name": "Команда",
"slug": "team",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 1,
"group_id": 5
}
}
]
},
{
"id": 2,
"name": "Участник",
"slug": "member",
"description": "Умеет всё что и администратор, кроме настроек и оплаты",
"team_id": null,
"is_system": true,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"users_count": 0,
"permissions": [
{
"id": 2,
"name": "Добавление проектов",
"slug": "projects-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 1,
"pivot": {
"role_id": 2,
"permission_id": 2
}
},
{
"id": 3,
"name": "Изменение настроек проекта",
"slug": "projects-change-settings",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 2,
"pivot": {
"role_id": 2,
"permission_id": 3
}
},
{
"id": 5,
"name": "Просмотр и управление финансами проектов",
"slug": "projects-finances",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 4,
"pivot": {
"role_id": 2,
"permission_id": 5
}
},
{
"id": 6,
"name": "Просмотр и управление блокнотами проектов",
"slug": "projects-notes",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 5,
"pivot": {
"role_id": 2,
"permission_id": 6
}
},
{
"id": 7,
"name": "Просмотр файлов проектов",
"slug": "projects-files-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 6,
"pivot": {
"role_id": 2,
"permission_id": 7
}
},
{
"id": 8,
"name": "Редактирование файлов проектов",
"slug": "projects-files-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 7,
"pivot": {
"role_id": 2,
"permission_id": 8
}
},
{
"id": 9,
"name": "Просмотр и управление приложениями проектов",
"slug": "projects-applications",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 8,
"pivot": {
"role_id": 2,
"permission_id": 9
}
},
{
"id": 10,
"name": "Управления полями пользователя",
"slug": "tasks-custom-fields-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 9,
"pivot": {
"role_id": 2,
"permission_id": 10
}
},
{
"id": 11,
"name": "Добавление задач",
"slug": "projects-tasks-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 10,
"pivot": {
"role_id": 2,
"permission_id": 11
}
},
{
"id": 12,
"name": "Редактирование задач",
"slug": "projects-tasks-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 11,
"pivot": {
"role_id": 2,
"permission_id": 12
}
},
{
"id": 14,
"name": "Только просмотр",
"slug": "finances-view",
"group_id": 2,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 13,
"pivot": {
"role_id": 2,
"permission_id": 14
}
},
{
"id": 15,
"name": "Редактирование и просмотр раздела",
"slug": "finances-edit",
"group_id": 2,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 14,
"pivot": {
"role_id": 2,
"permission_id": 15
}
},
{
"id": 16,
"name": "Только просмотр",
"slug": "clients-view",
"group_id": 3,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 15,
"pivot": {
"role_id": 2,
"permission_id": 16
}
},
{
"id": 17,
"name": "Редактирование раздела",
"slug": "clients-edit",
"group_id": 3,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 16,
"pivot": {
"role_id": 2,
"permission_id": 17
}
},
{
"id": 18,
"name": "Только просмотр файлов",
"slug": "storage-view",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 17,
"pivot": {
"role_id": 2,
"permission_id": 18
}
},
{
"id": 19,
"name": "Добавление файлов",
"slug": "storage-add",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 18,
"pivot": {
"role_id": 2,
"permission_id": 19
}
},
{
"id": 21,
"name": "Только просмотр",
"slug": "team-view",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 20,
"pivot": {
"role_id": 2,
"permission_id": 21
}
},
{
"id": 22,
"name": "Приглашение участников в команду",
"slug": "team-invite",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 21,
"pivot": {
"role_id": 2,
"permission_id": 22
}
},
{
"id": 23,
"name": "Редактирование данных участников",
"slug": "team-edit",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 22,
"pivot": {
"role_id": 2,
"permission_id": 23
}
},
{
"id": 25,
"name": "Просмотр ролей",
"slug": "roles-view",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 24,
"pivot": {
"role_id": 2,
"permission_id": 25
}
},
{
"id": 26,
"name": "Добавление ролей",
"slug": "roles-add",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 25,
"pivot": {
"role_id": 2,
"permission_id": 26
}
},
{
"id": 27,
"name": "Редактирование ролей",
"slug": "roles-edit",
"group_id": 5,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 26,
"pivot": {
"role_id": 2,
"permission_id": 27
}
}
],
"groups": [
{
"id": 1,
"name": "Проекты",
"slug": "projects",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 2,
"group_id": 1
}
},
{
"id": 2,
"name": "Финансы",
"slug": "finances",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 2,
"group_id": 2
}
},
{
"id": 3,
"name": "Клиенты",
"slug": "clients",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 2,
"group_id": 3
}
},
{
"id": 4,
"name": "Хранилище",
"slug": "storage",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 2,
"group_id": 4
}
},
{
"id": 5,
"name": "Команда",
"slug": "team",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 2,
"group_id": 5
}
}
]
},
{
"id": 3,
"name": "Наблюдатель",
"slug": "observer",
"description": "Может просматривать проекты и задачи в которые он добавлен",
"team_id": null,
"is_system": true,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"users_count": 0,
"permissions": [],
"groups": [
{
"id": 1,
"name": "Проекты",
"slug": "projects",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 3,
"group_id": 1
}
}
]
}
]
},
"message": "success"
}
Создать роль
Заголовки
Параметры URL
Slug пространства
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/roles/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Разработчик",
"description": "Роль для разработчиков",
"groups": [
1,
2,
3
],
"permissions": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"name": "Разработчик",
"description": null,
"team_id": 35,
"slug": "07f94212-ce09-490f-9ec7-3a51ba129f27",
"updated_at": "2024-06-19T18:29:11.000000Z",
"created_at": "2024-06-19T18:29:11.000000Z",
"id": 4,
"users_count": 0,
"groups": [
{
"id": 1,
"name": "Проекты",
"slug": "projects",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 4,
"group_id": 1
}
},
{
"id": 4,
"name": "Хранилище",
"slug": "storage",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 4,
"group_id": 4
}
}
],
"permissions": [
{
"id": 1,
"name": "Просмотр всех проектов",
"slug": "projects-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 0,
"pivot": {
"role_id": 4,
"permission_id": 1
}
},
{
"id": 2,
"name": "Добавление проектов",
"slug": "projects-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 1,
"pivot": {
"role_id": 4,
"permission_id": 2
}
},
{
"id": 3,
"name": "Изменение настроек проекта",
"slug": "projects-change-settings",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 2,
"pivot": {
"role_id": 4,
"permission_id": 3
}
},
{
"id": 4,
"name": "Удаление проектов",
"slug": "projects-delete",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 3,
"pivot": {
"role_id": 4,
"permission_id": 4
}
},
{
"id": 5,
"name": "Просмотр и управление финансами проектов",
"slug": "projects-finances",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 4,
"pivot": {
"role_id": 4,
"permission_id": 5
}
},
{
"id": 6,
"name": "Просмотр и управление блокнотами проектов",
"slug": "projects-notes",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 5,
"pivot": {
"role_id": 4,
"permission_id": 6
}
},
{
"id": 7,
"name": "Просмотр файлов проектов",
"slug": "projects-files-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 6,
"pivot": {
"role_id": 4,
"permission_id": 7
}
},
{
"id": 8,
"name": "Редактирование файлов проектов",
"slug": "projects-files-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 7,
"pivot": {
"role_id": 4,
"permission_id": 8
}
},
{
"id": 9,
"name": "Просмотр и управление приложениями проектов",
"slug": "projects-applications",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 8,
"pivot": {
"role_id": 4,
"permission_id": 9
}
},
{
"id": 10,
"name": "Управления полями пользователя",
"slug": "tasks-custom-fields-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 9,
"pivot": {
"role_id": 4,
"permission_id": 10
}
},
{
"id": 11,
"name": "Добавление задач",
"slug": "projects-tasks-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 10,
"pivot": {
"role_id": 4,
"permission_id": 11
}
},
{
"id": 12,
"name": "Редактирование задач",
"slug": "projects-tasks-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 11,
"pivot": {
"role_id": 4,
"permission_id": 12
}
},
{
"id": 13,
"name": "Удаление задач",
"slug": "projects-tasks-delete",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 12,
"pivot": {
"role_id": 4,
"permission_id": 13
}
},
{
"id": 18,
"name": "Только просмотр файлов",
"slug": "storage-view",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 17,
"pivot": {
"role_id": 4,
"permission_id": 18
}
},
{
"id": 19,
"name": "Добавление файлов",
"slug": "storage-add",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 18,
"pivot": {
"role_id": 4,
"permission_id": 19
}
},
{
"id": 20,
"name": "Удаление файлов",
"slug": "storage-delete",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 19,
"pivot": {
"role_id": 4,
"permission_id": 20
}
}
]
},
"message": "success"
}
Обновить роль
Заголовки
Параметры URL
Slug пространства
Slug роли
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/roles/d823e13a-b255-431e-b425-6c211c038248/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Разработчик",
"description": "Роль для разработчиков",
"groups": [
1,
2,
3
],
"permissions": [
1,
2,
3
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"id": 4,
"name": "Разработчик (Edited)",
"slug": "07f94212-ce09-490f-9ec7-3a51ba129f27",
"description": null,
"team_id": 35,
"is_system": false,
"created_at": "2024-06-19T18:29:11.000000Z",
"updated_at": "2024-06-19T18:29:57.000000Z",
"users_count": 0,
"groups": [
{
"id": 1,
"name": "Проекты",
"slug": "projects",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 4,
"group_id": 1
}
},
{
"id": 4,
"name": "Хранилище",
"slug": "storage",
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"pivot": {
"role_id": 4,
"group_id": 4
}
}
],
"permissions": [
{
"id": 1,
"name": "Просмотр всех проектов",
"slug": "projects-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 0,
"pivot": {
"role_id": 4,
"permission_id": 1
}
},
{
"id": 2,
"name": "Добавление проектов",
"slug": "projects-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 1,
"pivot": {
"role_id": 4,
"permission_id": 2
}
},
{
"id": 3,
"name": "Изменение настроек проекта",
"slug": "projects-change-settings",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 2,
"pivot": {
"role_id": 4,
"permission_id": 3
}
},
{
"id": 4,
"name": "Удаление проектов",
"slug": "projects-delete",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 3,
"pivot": {
"role_id": 4,
"permission_id": 4
}
},
{
"id": 5,
"name": "Просмотр и управление финансами проектов",
"slug": "projects-finances",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 4,
"pivot": {
"role_id": 4,
"permission_id": 5
}
},
{
"id": 6,
"name": "Просмотр и управление блокнотами проектов",
"slug": "projects-notes",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 5,
"pivot": {
"role_id": 4,
"permission_id": 6
}
},
{
"id": 7,
"name": "Просмотр файлов проектов",
"slug": "projects-files-view",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 6,
"pivot": {
"role_id": 4,
"permission_id": 7
}
},
{
"id": 8,
"name": "Редактирование файлов проектов",
"slug": "projects-files-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 7,
"pivot": {
"role_id": 4,
"permission_id": 8
}
},
{
"id": 9,
"name": "Просмотр и управление приложениями проектов",
"slug": "projects-applications",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 8,
"pivot": {
"role_id": 4,
"permission_id": 9
}
},
{
"id": 10,
"name": "Управления полями пользователя",
"slug": "tasks-custom-fields-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 9,
"pivot": {
"role_id": 4,
"permission_id": 10
}
},
{
"id": 11,
"name": "Добавление задач",
"slug": "projects-tasks-add",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 10,
"pivot": {
"role_id": 4,
"permission_id": 11
}
},
{
"id": 12,
"name": "Редактирование задач",
"slug": "projects-tasks-edit",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 11,
"pivot": {
"role_id": 4,
"permission_id": 12
}
},
{
"id": 13,
"name": "Удаление задач",
"slug": "projects-tasks-delete",
"group_id": 1,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 12,
"pivot": {
"role_id": 4,
"permission_id": 13
}
},
{
"id": 18,
"name": "Только просмотр файлов",
"slug": "storage-view",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 17,
"pivot": {
"role_id": 4,
"permission_id": 18
}
},
{
"id": 19,
"name": "Добавление файлов",
"slug": "storage-add",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 18,
"pivot": {
"role_id": 4,
"permission_id": 19
}
},
{
"id": 20,
"name": "Удаление файлов",
"slug": "storage-delete",
"group_id": 4,
"created_at": "2024-03-26T08:25:22.000000Z",
"updated_at": "2024-03-26T08:25:22.000000Z",
"order": 19,
"pivot": {
"role_id": 4,
"permission_id": 20
}
}
]
},
"message": "success"
}
Удалить роль
Заголовки
Параметры URL
Slug пространства
Slug роли
const url = new URL(
"https://api.otask.ru/api/v1/ws/d823e13a-b255-431e-b425-6c211c038248/roles/d823e13a-b255-431e-b425-6c211c038248/destroy"
);
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"
}
Пользователь
Получить информацию о пользователе
Заголовки
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/me"
);
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": 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-19T16:32:54.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",
"roles": [],
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-19T19:32:54+03:00",
"birth_date": null,
"timezone": "Europe/Moscow",
"admin": false,
"partner": false,
"subscribesAll": [
{
"id": 1,
"name": "Добавлен новый проект",
"description": null,
"slug": "projects-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 0,
"group": {
"id": 1,
"name": "Проекты",
"slug": "projects"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 2,
"name": "Изменения в проекте",
"description": null,
"slug": "projects-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 1,
"group": {
"id": 1,
"name": "Проекты",
"slug": "projects"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 3,
"name": "Добавление блокнота",
"description": null,
"slug": "projects-notes-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 2,
"group": {
"id": 1,
"name": "Проекты",
"slug": "projects"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 4,
"name": "Изменение блокнота",
"description": null,
"slug": "projects-notes-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 3,
"group": {
"id": 1,
"name": "Проекты",
"slug": "projects"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 5,
"name": "Добавление приложения",
"description": null,
"slug": "projects-apps-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 4,
"group": {
"id": 1,
"name": "Проекты",
"slug": "projects"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 6,
"name": "Платежи в проекте",
"description": null,
"slug": "projects-payments",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 5,
"group": {
"id": 1,
"name": "Проекты",
"slug": "projects"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 7,
"name": "Напоминание о регулярном платеже",
"description": null,
"slug": "projects-payments-regular",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 6,
"group": {
"id": 1,
"name": "Проекты",
"slug": "projects"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 8,
"name": "Напоминание за 1 час о задаче",
"description": null,
"slug": "projects-tasks-expires-end-at",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 7,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 9,
"name": "Создание задачи",
"description": null,
"slug": "projects-tasks-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 8,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 10,
"name": "Изменения в задаче",
"description": null,
"slug": "projects-tasks-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 9,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 11,
"name": "Изменение статуса",
"description": null,
"slug": "projects-tasks-status-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 10,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 12,
"name": "Удаление задачи",
"description": null,
"slug": "projects-tasks-delete",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 11,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 13,
"name": "Изменение исполнителя",
"description": null,
"slug": "projects-tasks-performers-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 12,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 14,
"name": "Запуск и остановка таймера",
"description": null,
"slug": "projects-tasks-timers-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 13,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 15,
"name": "Добавление файлов",
"description": null,
"slug": "projects-tasks-media-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 14,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 16,
"name": "Изменение сроков",
"description": null,
"slug": "projects-tasks-deadlines-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 15,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 17,
"name": "Изменение приоритета",
"description": null,
"slug": "projects-tasks-priority-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 16,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 18,
"name": "Напоминание о задаче",
"description": null,
"slug": "projects-tasks-remind",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 17,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 19,
"name": "Новый комментарий",
"description": null,
"slug": "projects-tasks-messages",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 18,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 20,
"name": "Удаление комментария",
"description": null,
"slug": "projects-tasks-messages-delete",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 19,
"group": {
"id": 2,
"name": "Задачи",
"slug": "tasks"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 21,
"name": "Создание платежа",
"description": null,
"slug": "finance-payments-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 3,
"ord": 20,
"group": {
"id": 3,
"name": "Финансы",
"slug": "finances"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 22,
"name": "Изменение платежа",
"description": null,
"slug": "finance-payments-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 3,
"ord": 21,
"group": {
"id": 3,
"name": "Финансы",
"slug": "finances"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 23,
"name": "Удаление платежа",
"description": null,
"slug": "finance-payments-delete",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 3,
"ord": 22,
"group": {
"id": 3,
"name": "Финансы",
"slug": "finances"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 24,
"name": "Вступление в команду",
"description": null,
"slug": "teams-members-invite-accept",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 4,
"ord": 23,
"group": {
"id": 4,
"name": "Команда",
"slug": "teams"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 25,
"name": "Удаление из команды",
"description": null,
"slug": "teams-members-reject",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 4,
"ord": 24,
"group": {
"id": 4,
"name": "Команда",
"slug": "teams"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 26,
"name": "Приглашение в команду",
"description": null,
"slug": "teams-members-invite",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 4,
"ord": 25,
"group": {
"id": 4,
"name": "Команда",
"slug": "teams"
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 27,
"name": "Обновления системы O!task",
"description": "О новых возможностях и специальных предложениях",
"slug": "news",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": null,
"ord": 26,
"group": null,
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 28,
"name": "Уведомления о состоянии аккаунта",
"description": null,
"slug": "accounts-status",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": null,
"ord": 27,
"group": null,
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
}
],
"subscribes": [
{
"id": 34,
"type": "email",
"uid": "example@example.example",
"message_allowed": true,
"user_id": 18,
"created_at": "2024-06-11T10:51:38.000000Z",
"updated_at": "2024-06-11T10:51:38.000000Z",
"types": [
{
"id": 1,
"name": "Добавлен новый проект",
"description": null,
"slug": "projects-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 0,
"pivot": {
"sub_id": 34,
"type_id": 1
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 2,
"name": "Изменения в проекте",
"description": null,
"slug": "projects-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 1,
"pivot": {
"sub_id": 34,
"type_id": 2
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 3,
"name": "Добавление блокнота",
"description": null,
"slug": "projects-notes-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 2,
"pivot": {
"sub_id": 34,
"type_id": 3
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 4,
"name": "Изменение блокнота",
"description": null,
"slug": "projects-notes-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 3,
"pivot": {
"sub_id": 34,
"type_id": 4
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 5,
"name": "Добавление приложения",
"description": null,
"slug": "projects-apps-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 4,
"pivot": {
"sub_id": 34,
"type_id": 5
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 6,
"name": "Платежи в проекте",
"description": null,
"slug": "projects-payments",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 5,
"pivot": {
"sub_id": 34,
"type_id": 6
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 7,
"name": "Напоминание о регулярном платеже",
"description": null,
"slug": "projects-payments-regular",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 6,
"pivot": {
"sub_id": 34,
"type_id": 7
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 8,
"name": "Напоминание за 1 час о задаче",
"description": null,
"slug": "projects-tasks-expires-end-at",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 7,
"pivot": {
"sub_id": 34,
"type_id": 8
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 9,
"name": "Создание задачи",
"description": null,
"slug": "projects-tasks-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 8,
"pivot": {
"sub_id": 34,
"type_id": 9
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 10,
"name": "Изменения в задаче",
"description": null,
"slug": "projects-tasks-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 9,
"pivot": {
"sub_id": 34,
"type_id": 10
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 11,
"name": "Изменение статуса",
"description": null,
"slug": "projects-tasks-status-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 10,
"pivot": {
"sub_id": 34,
"type_id": 11
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 12,
"name": "Удаление задачи",
"description": null,
"slug": "projects-tasks-delete",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 11,
"pivot": {
"sub_id": 34,
"type_id": 12
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 13,
"name": "Изменение исполнителя",
"description": null,
"slug": "projects-tasks-performers-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 12,
"pivot": {
"sub_id": 34,
"type_id": 13
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 14,
"name": "Запуск и остановка таймера",
"description": null,
"slug": "projects-tasks-timers-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 13,
"pivot": {
"sub_id": 34,
"type_id": 14
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 15,
"name": "Добавление файлов",
"description": null,
"slug": "projects-tasks-media-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 14,
"pivot": {
"sub_id": 34,
"type_id": 15
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 16,
"name": "Изменение сроков",
"description": null,
"slug": "projects-tasks-deadlines-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 15,
"pivot": {
"sub_id": 34,
"type_id": 16
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 17,
"name": "Изменение приоритета",
"description": null,
"slug": "projects-tasks-priority-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 16,
"pivot": {
"sub_id": 34,
"type_id": 17
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 18,
"name": "Напоминание о задаче",
"description": null,
"slug": "projects-tasks-remind",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 17,
"pivot": {
"sub_id": 34,
"type_id": 18
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 19,
"name": "Новый комментарий",
"description": null,
"slug": "projects-tasks-messages",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 18,
"pivot": {
"sub_id": 34,
"type_id": 19
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 20,
"name": "Удаление комментария",
"description": null,
"slug": "projects-tasks-messages-delete",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 19,
"pivot": {
"sub_id": 34,
"type_id": 20
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 21,
"name": "Создание платежа",
"description": null,
"slug": "finance-payments-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 3,
"ord": 20,
"pivot": {
"sub_id": 34,
"type_id": 21
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 22,
"name": "Изменение платежа",
"description": null,
"slug": "finance-payments-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 3,
"ord": 21,
"pivot": {
"sub_id": 34,
"type_id": 22
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 23,
"name": "Удаление платежа",
"description": null,
"slug": "finance-payments-delete",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 3,
"ord": 22,
"pivot": {
"sub_id": 34,
"type_id": 23
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 24,
"name": "Вступление в команду",
"description": null,
"slug": "teams-members-invite-accept",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 4,
"ord": 23,
"pivot": {
"sub_id": 34,
"type_id": 24
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 25,
"name": "Удаление из команды",
"description": null,
"slug": "teams-members-reject",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 4,
"ord": 24,
"pivot": {
"sub_id": 34,
"type_id": 25
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 26,
"name": "Приглашение в команду",
"description": null,
"slug": "teams-members-invite",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 4,
"ord": 25,
"pivot": {
"sub_id": 34,
"type_id": 26
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
}
],
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
},
{
"id": 35,
"type": "database",
"uid": "example@example.example",
"message_allowed": true,
"user_id": 18,
"created_at": "2024-06-11T10:51:38.000000Z",
"updated_at": "2024-06-11T10:51:38.000000Z",
"types": [
{
"id": 1,
"name": "Добавлен новый проект",
"description": null,
"slug": "projects-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 0,
"pivot": {
"sub_id": 35,
"type_id": 1
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 2,
"name": "Изменения в проекте",
"description": null,
"slug": "projects-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 1,
"pivot": {
"sub_id": 35,
"type_id": 2
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 3,
"name": "Добавление блокнота",
"description": null,
"slug": "projects-notes-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 2,
"pivot": {
"sub_id": 35,
"type_id": 3
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 4,
"name": "Изменение блокнота",
"description": null,
"slug": "projects-notes-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 3,
"pivot": {
"sub_id": 35,
"type_id": 4
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 5,
"name": "Добавление приложения",
"description": null,
"slug": "projects-apps-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 4,
"pivot": {
"sub_id": 35,
"type_id": 5
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 6,
"name": "Платежи в проекте",
"description": null,
"slug": "projects-payments",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 5,
"pivot": {
"sub_id": 35,
"type_id": 6
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 7,
"name": "Напоминание о регулярном платеже",
"description": null,
"slug": "projects-payments-regular",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 1,
"ord": 6,
"pivot": {
"sub_id": 35,
"type_id": 7
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 8,
"name": "Напоминание за 1 час о задаче",
"description": null,
"slug": "projects-tasks-expires-end-at",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 7,
"pivot": {
"sub_id": 35,
"type_id": 8
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 9,
"name": "Создание задачи",
"description": null,
"slug": "projects-tasks-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 8,
"pivot": {
"sub_id": 35,
"type_id": 9
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 10,
"name": "Изменения в задаче",
"description": null,
"slug": "projects-tasks-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 9,
"pivot": {
"sub_id": 35,
"type_id": 10
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 11,
"name": "Изменение статуса",
"description": null,
"slug": "projects-tasks-status-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 10,
"pivot": {
"sub_id": 35,
"type_id": 11
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 12,
"name": "Удаление задачи",
"description": null,
"slug": "projects-tasks-delete",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 11,
"pivot": {
"sub_id": 35,
"type_id": 12
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 13,
"name": "Изменение исполнителя",
"description": null,
"slug": "projects-tasks-performers-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 12,
"pivot": {
"sub_id": 35,
"type_id": 13
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 14,
"name": "Запуск и остановка таймера",
"description": null,
"slug": "projects-tasks-timers-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 13,
"pivot": {
"sub_id": 35,
"type_id": 14
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 15,
"name": "Добавление файлов",
"description": null,
"slug": "projects-tasks-media-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 14,
"pivot": {
"sub_id": 35,
"type_id": 15
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 16,
"name": "Изменение сроков",
"description": null,
"slug": "projects-tasks-deadlines-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 15,
"pivot": {
"sub_id": 35,
"type_id": 16
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 17,
"name": "Изменение приоритета",
"description": null,
"slug": "projects-tasks-priority-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 16,
"pivot": {
"sub_id": 35,
"type_id": 17
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 18,
"name": "Напоминание о задаче",
"description": null,
"slug": "projects-tasks-remind",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 17,
"pivot": {
"sub_id": 35,
"type_id": 18
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 19,
"name": "Новый комментарий",
"description": null,
"slug": "projects-tasks-messages",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 18,
"pivot": {
"sub_id": 35,
"type_id": 19
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 20,
"name": "Удаление комментария",
"description": null,
"slug": "projects-tasks-messages-delete",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 2,
"ord": 19,
"pivot": {
"sub_id": 35,
"type_id": 20
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 21,
"name": "Создание платежа",
"description": null,
"slug": "finance-payments-new",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 3,
"ord": 20,
"pivot": {
"sub_id": 35,
"type_id": 21
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 22,
"name": "Изменение платежа",
"description": null,
"slug": "finance-payments-edit",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 3,
"ord": 21,
"pivot": {
"sub_id": 35,
"type_id": 22
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 23,
"name": "Удаление платежа",
"description": null,
"slug": "finance-payments-delete",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 3,
"ord": 22,
"pivot": {
"sub_id": 35,
"type_id": 23
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 24,
"name": "Вступление в команду",
"description": null,
"slug": "teams-members-invite-accept",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 4,
"ord": 23,
"pivot": {
"sub_id": 35,
"type_id": 24
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 25,
"name": "Удаление из команды",
"description": null,
"slug": "teams-members-reject",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 4,
"ord": 24,
"pivot": {
"sub_id": 35,
"type_id": 25
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
},
{
"id": 26,
"name": "Приглашение в команду",
"description": null,
"slug": "teams-members-invite",
"created_at": "2024-03-26T08:25:21.000000Z",
"updated_at": "2024-03-26T08:25:21.000000Z",
"group_id": 4,
"ord": 25,
"pivot": {
"sub_id": 35,
"type_id": 26
},
"localtz_created_at": "2024-03-26T11:25:21+03:00",
"localtz_updated_at": "2024-03-26T11:25:21+03:00"
}
],
"localtz_created_at": "2024-06-11T13:51:38+03:00",
"localtz_updated_at": "2024-06-11T13:51:38+03:00"
}
],
"avatar120": "https://example.example/storage/uploads/users/0493d251-bd37-43f4-824e-8e1f6074c56f.jpg",
"max_projects": null,
"expended_storage": "1.33",
"available_storage": "250.00",
"currency": {
"id": 1,
"name": "Российский рубль",
"symbol": "₽",
"code": "RUB"
},
"count_unread_notifications": 0,
"socials": [],
"timer": null,
"show_first_visit": true,
"show_payment_waiting": false,
"show_demo_classes": true,
"show_package_expires": false,
"disable_notification_sound": true,
"hide_user_timer": false,
"params": {
"hide_tasks_video_hint": false,
"hide_clients_video_hint": false,
"hide_projects_video_hint": false,
"hide_finances_video_hint": false,
"hide_storage_video_hint": false,
"hide_team_video_hint": false,
"hide_profile_video_hint": false,
"hide_projects_inside_video_hint": false,
"kanban_expand_subtasks": false,
"kanban_separate_subtasks": false,
"calendar_expand_subtasks": false,
"calendar_separate_subtasks": false,
"month_calendar_expand_subtasks": false,
"month_calendar_separate_subtasks": false,
"list_separate_subtasks": false,
"show_first_onboarding": false,
"current_onboarding_modal_step": 0,
"hide_onboarding_modal_button": false
},
"system_info": {
"partner_agreement_url": "https://otask.ru/"
}
}
}
Удаление аккаунта пользователя
Заголовки
const url = new URL(
"https://api.otask.ru/api/v1/remove-account"
);
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"
}
Первый шаг онбординга
Заголовки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/analytics/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_name": "molestiae",
"count_employees": 18,
"field_activity": "fugit",
"name": "voluptas",
"telegram": "fugiat"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Второй шаг онбординга
Заголовки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/analytics/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"goals": [
"Управление проектами",
"Учет клиентов и CRM",
"Учет финансов",
"Хранение файлов"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Вход
Заголовки
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "email@example.example",
"password": "password"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"token": "token",
"refresh_token": "token",
"token_type": "bearer",
"expires_in": 1000000,
"is_register": false,
"status_join_team": null
}
Регистрация
Заголовки
Параметры тела запроса
Поля ответа
const url = new URL(
"https://api.otask.ru/api/v1/auth/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "example@example.example",
"password": "password"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"token": "token",
"refresh_token": "token",
"token_type": "bearer",
"expires_in": 1000000,
"is_register": false,
"status_join_team": null
}
Сброс пароля
Заголовки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/auth/reset"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "example@example.example"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
OK
Выход
Заголовки
const url = new URL(
"https://api.otask.ru/api/v1/auth/logout"
);
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"
}
Получить информацию о пользователе #2
Заголовки
const url = new URL(
"https://api.otask.ru/api/v1/users"
);
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": 18,
"is_pro": false,
"tariff_text": null,
"max_projects": null,
"max_members": 2,
"endDt": "2024-06-19T18:31:36.320935Z",
"name": "example",
"picture": "<picture>\r\n\t<!--[if IE 9]><video style=\"display: none;><![endif]-->\r\n\t\t<source data-srcset=\"https://example.example/storage/uploads/users/18400b38-2388-46d6-ad28-9812eee2190f.jpg 1x, https://example.example/storage/uploads/users/18400b38-2388-46d6-ad28-9812eee2190f@2x.jpg 2x\" type=\"image/jpeg\">\r\n\t<!--[if IE 9]></video><![endif]-->\r\n\t\r\n\t<img src=\"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=\" data-sizes=\"auto\" data-srcset=\"https://example.example/storage/uploads/users/18400b38-2388-46d6-ad28-9812eee2190f.jpg 1x, https://example.example/storage/uploads/users/18400b38-2388-46d6-ad28-9812eee2190f@2x.jpg 2x\" alt=\"example\" class=\"lazyload img-fluid\" />\r\n</picture>\r\n"
},
"message": "success"
}
Изменить настройки пользователя
Заголовки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/users/update-settings"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"timezone": "Europe\/Moscow",
"currency_id": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Изменить данные пользователя
Заголовки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/users/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "Иван",
"last_name": "Иванов",
"sex": "female",
"birth_date": "01.01.1990",
"position": "Разработчик"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Изменить пароль
Заголовки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/users/updatePassword"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"old_password": "old_password",
"password": "new_password"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": {
"token": "token"
},
"message": "Обновление выполнено успешно"
}
Изменить аватарку пользователя
Заголовки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/users/pictureUpdate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('type', 'delete');
body.append('userpic', document.querySelector('input[name="userpic"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}
Стать партнером
Заголовки
const url = new URL(
"https://api.otask.ru/api/v1/users/start-partner"
);
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"
}
Изменить уведомления
Заголовки
Параметры тела запроса
const url = new URL(
"https://api.otask.ru/api/v1/users/subscribes/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"database": [
1,
2,
3
],
"email": [
1,
2,
3
],
"telegram": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
{
"success": true,
"data": null,
"message": "success"
}