Download OpenAPI specification:Download
Welcome to the HumHub tasks module API reference.
page | string >= 0 The number of page of the result set. |
limit | string [ 1 .. 50 ] Default: 20 The numbers of items to return per page. |
{- "total": 76,
- "page": 1,
- "pages": 8,
- "links": {
- "self": "{endpoint_path}?page=1&per-page=10",
- "next": "{endpoint_path}?page=2&per-page=10",
- "last": "{endpoint_path}?page=8&per-page=10"
}, - "results": [
- {
- "id": 6,
- "title": "Space task by API",
- "description": "Space task by API description",
- "status": 1,
- "start_datetime": "2019-02-27 10:00:00",
- "end_datetime": "2019-02-28 17:59:00",
- "scheduling": 1,
- "all_day": 0,
- "reminders": [
- {
- "id": 14,
- "task_id": 6,
- "reminder_mode": 3,
- "start_reminder_sent": 0,
- "end_reminder_sent": 0
}
], - "max_users": null,
- "color": null,
- "task_list": {
- "id": 9,
- "name": "Task list name",
- "contentcontainer_id": 2,
- "parent_id": null,
- "color": "#d1ad0e",
- "settings": {
- "hide_if_completed": 1,
- "sort_order": 0
}
}, - "cal_mode": 1,
- "review": 1,
- "created_at": "2019-03-05 15:35:02",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "content": {
- "metadata": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "object_model": "humhub\\modules\\post\\models\\Post",
- "object_id": 12,
- "visibility": 1,
- "archived": true,
- "pinned": false,
- "locked_comments": false,
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": "2022-04-13 05:15:43",
- "contentcontainer_id": 5,
- "stream_channel": "default"
}, - "comments": {
- "total": 55,
- "latestComments": [
- {
- "id": 14,
- "message": "Calvin Klein – Between love and madness lies obsession.",
- "createdBy": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "createdAt": "2018-08-09 14:22:03"
}
]
}, - "likes": {
- "total": 35
}, - "files": {
- "id": 14,
- "guid": "bded6dc7-e6f4-417e-a638-b653525529ca",
- "mime_type": "text/plain",
- "size": 14353,
- "file_name": "image.jpg",
}, - "topics": [
- {
- "id": 135,
- "name": "News"
}
]
}, - "percentage": 0,
- "checklist": [
- {
- "id": 14,
- "task_id": 6,
- "title": "first item",
- "description": "item description",
- "completed": 0,
- "sort_order": 0
}
], - "assigned_users": [
- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}
], - "responsible_users": [
- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}
]
}
]
}
id required | integer ID of content container |
page | string >= 0 The number of page of the result set. |
limit | string [ 1 .. 50 ] Default: 20 The numbers of items to return per page. |
{- "total": 76,
- "page": 1,
- "pages": 8,
- "links": {
- "self": "{endpoint_path}?page=1&per-page=10",
- "next": "{endpoint_path}?page=2&per-page=10",
- "last": "{endpoint_path}?page=8&per-page=10"
}, - "results": [
- {
- "id": 6,
- "title": "Space task by API",
- "description": "Space task by API description",
- "status": 1,
- "start_datetime": "2019-02-27 10:00:00",
- "end_datetime": "2019-02-28 17:59:00",
- "scheduling": 1,
- "all_day": 0,
- "reminders": [
- {
- "id": 14,
- "task_id": 6,
- "reminder_mode": 3,
- "start_reminder_sent": 0,
- "end_reminder_sent": 0
}
], - "max_users": null,
- "color": null,
- "task_list": {
- "id": 9,
- "name": "Task list name",
- "contentcontainer_id": 2,
- "parent_id": null,
- "color": "#d1ad0e",
- "settings": {
- "hide_if_completed": 1,
- "sort_order": 0
}
}, - "cal_mode": 1,
- "review": 1,
- "created_at": "2019-03-05 15:35:02",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "content": {
- "metadata": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "object_model": "humhub\\modules\\post\\models\\Post",
- "object_id": 12,
- "visibility": 1,
- "archived": true,
- "pinned": false,
- "locked_comments": false,
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": "2022-04-13 05:15:43",
- "contentcontainer_id": 5,
- "stream_channel": "default"
}, - "comments": {
- "total": 55,
- "latestComments": [
- {
- "id": 14,
- "message": "Calvin Klein – Between love and madness lies obsession.",
- "createdBy": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "createdAt": "2018-08-09 14:22:03"
}
]
}, - "likes": {
- "total": 35
}, - "files": {
- "id": 14,
- "guid": "bded6dc7-e6f4-417e-a638-b653525529ca",
- "mime_type": "text/plain",
- "size": 14353,
- "file_name": "image.jpg",
}, - "topics": [
- {
- "id": 135,
- "name": "News"
}
]
}, - "percentage": 0,
- "checklist": [
- {
- "id": 14,
- "task_id": 6,
- "title": "first item",
- "description": "item description",
- "completed": 0,
- "sort_order": 0
}
], - "assigned_users": [
- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}
], - "responsible_users": [
- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}
]
}
]
}
id required | integer The id of content container |
Task information
required | object |
required | object |
object (Content) |
{- "Task": {
- "title": "New task by api",
- "description": "Api task description",
- "task_list_id": 9,
- "scheduling": 1,
- "all_day": 0,
- "selectedReminders": [
- 1,
- 4
], - "cal_mode": 1,
- "assignedUsers": [
- "ad82fbfa-9621-489f-993a-0cf6d8be5747",
- "231acc8c-a8f5-4450-8b96-f670ffc1496b"
], - "responsibleUsers": [
- "ad82fbfa-9621-489f-993a-0cf6d8be5747"
], - "review": 1
}, - "TaskForm": {
- "is_public": 1,
- "start_date": "2019-03-23",
- "start_time": "10:00",
- "end_date": "2019-03-25",
- "end_time": "20:30",
- "timeZone": "America/Los_Angeles",
- "newItems": [
- "first item",
- "second item"
]
}, - "content": {
- "metadata": {
- "visibility": 1,
- "archived": true,
- "pinned": false,
- "locked_comments": false
}, - "topics": [
- {
- "name": "News"
}
]
}
}
{- "id": 6,
- "title": "Space task by API",
- "description": "Space task by API description",
- "status": 1,
- "start_datetime": "2019-02-27 10:00:00",
- "end_datetime": "2019-02-28 17:59:00",
- "scheduling": 1,
- "all_day": 0,
- "reminders": [
- {
- "id": 14,
- "task_id": 6,
- "reminder_mode": 3,
- "start_reminder_sent": 0,
- "end_reminder_sent": 0
}
], - "max_users": null,
- "color": null,
- "task_list": {
- "id": 9,
- "name": "Task list name",
- "contentcontainer_id": 2,
- "parent_id": null,
- "color": "#d1ad0e",
- "settings": {
- "hide_if_completed": 1,
- "sort_order": 0
}
}, - "cal_mode": 1,
- "review": 1,
- "created_at": "2019-03-05 15:35:02",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "content": {
- "metadata": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "object_model": "humhub\\modules\\post\\models\\Post",
- "object_id": 12,
- "visibility": 1,
- "archived": true,
- "pinned": false,
- "locked_comments": false,
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": "2022-04-13 05:15:43",
- "contentcontainer_id": 5,
- "stream_channel": "default"
}, - "comments": {
- "total": 55,
- "latestComments": [
- {
- "id": 14,
- "message": "Calvin Klein – Between love and madness lies obsession.",
- "createdBy": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "createdAt": "2018-08-09 14:22:03"
}
]
}, - "likes": {
- "total": 35
}, - "files": {
- "id": 14,
- "guid": "bded6dc7-e6f4-417e-a638-b653525529ca",
- "mime_type": "text/plain",
- "size": 14353,
- "file_name": "image.jpg",
}, - "topics": [
- {
- "id": 135,
- "name": "News"
}
]
}, - "percentage": 0,
- "checklist": [
- {
- "id": 14,
- "task_id": 6,
- "title": "first item",
- "description": "item description",
- "completed": 0,
- "sort_order": 0
}
], - "assigned_users": [
- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}
], - "responsible_users": [
- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}
]
}
{- "id": 6,
- "title": "Space task by API",
- "description": "Space task by API description",
- "status": 1,
- "start_datetime": "2019-02-27 10:00:00",
- "end_datetime": "2019-02-28 17:59:00",
- "scheduling": 1,
- "all_day": 0,
- "reminders": [
- {
- "id": 14,
- "task_id": 6,
- "reminder_mode": 3,
- "start_reminder_sent": 0,
- "end_reminder_sent": 0
}
], - "max_users": null,
- "color": null,
- "task_list": {
- "id": 9,
- "name": "Task list name",
- "contentcontainer_id": 2,
- "parent_id": null,
- "color": "#d1ad0e",
- "settings": {
- "hide_if_completed": 1,
- "sort_order": 0
}
}, - "cal_mode": 1,
- "review": 1,
- "created_at": "2019-03-05 15:35:02",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "content": {
- "metadata": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "object_model": "humhub\\modules\\post\\models\\Post",
- "object_id": 12,
- "visibility": 1,
- "archived": true,
- "pinned": false,
- "locked_comments": false,
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": "2022-04-13 05:15:43",
- "contentcontainer_id": 5,
- "stream_channel": "default"
}, - "comments": {
- "total": 55,
- "latestComments": [
- {
- "id": 14,
- "message": "Calvin Klein – Between love and madness lies obsession.",
- "createdBy": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "createdAt": "2018-08-09 14:22:03"
}
]
}, - "likes": {
- "total": 35
}, - "files": {
- "id": 14,
- "guid": "bded6dc7-e6f4-417e-a638-b653525529ca",
- "mime_type": "text/plain",
- "size": 14353,
- "file_name": "image.jpg",
}, - "topics": [
- {
- "id": 135,
- "name": "News"
}
]
}, - "percentage": 0,
- "checklist": [
- {
- "id": 14,
- "task_id": 6,
- "title": "first item",
- "description": "item description",
- "completed": 0,
- "sort_order": 0
}
], - "assigned_users": [
- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}
], - "responsible_users": [
- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}
]
}
id required | integer The id of the task |
Task information
required | object |
required | object |
object (Content) |
{- "Task": {
- "title": "New task by api",
- "description": "Api task description",
- "task_list_id": 9,
- "scheduling": 1,
- "all_day": 0,
- "selectedReminders": [
- 1,
- 4
], - "cal_mode": 1,
- "assignedUsers": [
- "ad82fbfa-9621-489f-993a-0cf6d8be5747",
- "231acc8c-a8f5-4450-8b96-f670ffc1496b"
], - "responsibleUsers": [
- "ad82fbfa-9621-489f-993a-0cf6d8be5747"
], - "review": 1
}, - "TaskForm": {
- "is_public": 1,
- "start_date": "2019-03-23",
- "start_time": "10:00",
- "end_date": "2019-03-25",
- "end_time": "20:30",
- "timeZone": "America/Los_Angeles",
- "newItems": [
- "first item",
- "second item"
]
}, - "content": {
- "metadata": {
- "visibility": 1,
- "archived": true,
- "pinned": false,
- "locked_comments": false
}, - "topics": [
- {
- "name": "News"
}
]
}
}
{- "id": 6,
- "title": "Space task by API",
- "description": "Space task by API description",
- "status": 1,
- "start_datetime": "2019-02-27 10:00:00",
- "end_datetime": "2019-02-28 17:59:00",
- "scheduling": 1,
- "all_day": 0,
- "reminders": [
- {
- "id": 14,
- "task_id": 6,
- "reminder_mode": 3,
- "start_reminder_sent": 0,
- "end_reminder_sent": 0
}
], - "max_users": null,
- "color": null,
- "task_list": {
- "id": 9,
- "name": "Task list name",
- "contentcontainer_id": 2,
- "parent_id": null,
- "color": "#d1ad0e",
- "settings": {
- "hide_if_completed": 1,
- "sort_order": 0
}
}, - "cal_mode": 1,
- "review": 1,
- "created_at": "2019-03-05 15:35:02",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "content": {
- "metadata": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "object_model": "humhub\\modules\\post\\models\\Post",
- "object_id": 12,
- "visibility": 1,
- "archived": true,
- "pinned": false,
- "locked_comments": false,
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": "2022-04-13 05:15:43",
- "contentcontainer_id": 5,
- "stream_channel": "default"
}, - "comments": {
- "total": 55,
- "latestComments": [
- {
- "id": 14,
- "message": "Calvin Klein – Between love and madness lies obsession.",
- "createdBy": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "createdAt": "2018-08-09 14:22:03"
}
]
}, - "likes": {
- "total": 35
}, - "files": {
- "id": 14,
- "guid": "bded6dc7-e6f4-417e-a638-b653525529ca",
- "mime_type": "text/plain",
- "size": 14353,
- "file_name": "image.jpg",
}, - "topics": [
- {
- "id": 135,
- "name": "News"
}
]
}, - "percentage": 0,
- "checklist": [
- {
- "id": 14,
- "task_id": 6,
- "title": "first item",
- "description": "item description",
- "completed": 0,
- "sort_order": 0
}
], - "assigned_users": [
- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}
], - "responsible_users": [
- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}
]
}
id required | integer The id of the task |
title | integer <int64> Enum: 1 2 3 5 Participant type:
|
{- "title": 2
}
{- "code": 200,
- "message": "Status successfully changed."
}
id required | integer The id of the task |
title | integer <int64> Enum: 1 2 3 4 Participant type:
|
{- "title": 2
}
{- "code": 200,
- "message": "Task successfully reverted."
}
id required | integer ID of content container |
page | string >= 0 The number of page of the result set. |
limit | string [ 1 .. 50 ] Default: 20 The numbers of items to return per page. |
{- "total": 76,
- "page": 1,
- "pages": 8,
- "links": {
- "self": "{endpoint_path}?page=1&per-page=10",
- "next": "{endpoint_path}?page=2&per-page=10",
- "last": "{endpoint_path}?page=8&per-page=10"
}, - "results": [
- {
- "id": 9,
- "name": "Task list name",
- "contentcontainer_id": 2,
- "parent_id": null,
- "color": "#d1ad0e",
- "settings": {
- "hide_if_completed": 1,
- "sort_order": 0
}
}
]
}
id required | integer The id of content container |
Task list information
required | object |
required | object |
{- "TaskList": {
- "name": "New task list by api",
- "color": "#6fdbe8"
}, - "TaskListSettings": {
- "hide_if_completed": 1
}
}
{- "id": 9,
- "name": "Task list name",
- "contentcontainer_id": 2,
- "parent_id": null,
- "color": "#d1ad0e",
- "settings": {
- "hide_if_completed": 1,
- "sort_order": 0
}
}
id required | integer The id of the task list |
Task list information
required | object |
required | object |
{- "TaskList": {
- "name": "New task list by api",
- "color": "#6fdbe8"
}, - "TaskListSettings": {
- "hide_if_completed": 1
}
}
{- "id": 9,
- "name": "Task list name",
- "contentcontainer_id": 2,
- "parent_id": null,
- "color": "#d1ad0e",
- "settings": {
- "hide_if_completed": 1,
- "sort_order": 0
}
}