Download OpenAPI specification:
Welcome to the HumHub cFiles module API reference.
| id required | integer The id of content container |
| page | integer >= 0 The number of page of the result set. |
| limit | integer [ 1 .. 50 ] Default: 20 The numbers of items to return per page. |
{- "total": 76,
- "page": 1,
- "results": [
- {
- "id": 4,
- "title": "API directory",
- "description": "API directory description",
- "parent_folder_id": 1,
- "type": null,
- "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,
- "state": 1,
- "archived": true,
- "hidden": true,
- "pinned": false,
- "locked_comments": false,
- "scheduled_at": "2023-09-14 05:15:00",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": "2022-04-13 05:15:43",
- "updated_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "updated_at": "2022-05-21 06:20:18",
- "contentcontainer_id": 5,
- "stream_channel": "default"
}, - "comments": {
- "total": 55,
- "latestComments": [
- {
- "id": 14,
- "message": "Calvin Klein – Between love and madness lies obsession.",
- "objectModel": "humhub\\modules\\post\\models\\Post",
- "objectId": 123,
- "createdBy": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "createdAt": "2018-08-09 14:22:03",
- "commentsCount": 5,
- "comments": [
- { }
]
}
]
}, - "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"
}
]
}
}
]
}| id required | integer The id of content container |
Directory information
| target_id required | integer <int64> |
required | object |
{- "target_id": 1,
- "Folder": {
- "title": "API folder",
- "description": "API folder description",
- "visibility": 1
}
}{- "id": 4,
- "title": "API directory",
- "description": "API directory description",
- "parent_folder_id": 1,
- "type": null,
- "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,
- "state": 1,
- "archived": true,
- "hidden": true,
- "pinned": false,
- "locked_comments": false,
- "scheduled_at": "2023-09-14 05:15:00",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": "2022-04-13 05:15:43",
- "updated_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "updated_at": "2022-05-21 06:20:18",
- "contentcontainer_id": 5,
- "stream_channel": "default"
}, - "comments": {
- "total": 55,
- "latestComments": [
- {
- "id": 14,
- "message": "Calvin Klein – Between love and madness lies obsession.",
- "objectModel": "humhub\\modules\\post\\models\\Post",
- "objectId": 123,
- "createdBy": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "createdAt": "2018-08-09 14:22:03",
- "commentsCount": 5,
- "comments": [
- { }
]
}
]
}, - "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"
}
]
}
}{- "id": 4,
- "title": "API directory",
- "description": "API directory description",
- "parent_folder_id": 1,
- "type": null,
- "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,
- "state": 1,
- "archived": true,
- "hidden": true,
- "pinned": false,
- "locked_comments": false,
- "scheduled_at": "2023-09-14 05:15:00",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": "2022-04-13 05:15:43",
- "updated_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "updated_at": "2022-05-21 06:20:18",
- "contentcontainer_id": 5,
- "stream_channel": "default"
}, - "comments": {
- "total": 55,
- "latestComments": [
- {
- "id": 14,
- "message": "Calvin Klein – Between love and madness lies obsession.",
- "objectModel": "humhub\\modules\\post\\models\\Post",
- "objectId": 123,
- "createdBy": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "createdAt": "2018-08-09 14:22:03",
- "commentsCount": 5,
- "comments": [
- { }
]
}
]
}, - "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"
}
]
}
}| id required | integer The id of the directory |
Directory information
| target_id required | integer <int64> |
required | object |
{- "target_id": 1,
- "Folder": {
- "title": "API folder",
- "description": "API folder description",
- "visibility": 1
}
}{- "id": 4,
- "title": "API directory",
- "description": "API directory description",
- "parent_folder_id": 1,
- "type": null,
- "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,
- "state": 1,
- "archived": true,
- "hidden": true,
- "pinned": false,
- "locked_comments": false,
- "scheduled_at": "2023-09-14 05:15:00",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": "2022-04-13 05:15:43",
- "updated_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "updated_at": "2022-05-21 06:20:18",
- "contentcontainer_id": 5,
- "stream_channel": "default"
}, - "comments": {
- "total": 55,
- "latestComments": [
- {
- "id": 14,
- "message": "Calvin Klein – Between love and madness lies obsession.",
- "objectModel": "humhub\\modules\\post\\models\\Post",
- "objectId": 123,
- "createdBy": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "createdAt": "2018-08-09 14:22:03",
- "commentsCount": 5,
- "comments": [
- { }
]
}
]
}, - "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"
}
]
}
}| id required | integer The id of content container |
| page | integer >= 0 The number of page of the result set. |
| limit | integer [ 1 .. 50 ] Default: 20 The numbers of items to return per page. |
{- "total": 76,
- "page": 1,
- "results": [
- {
- "id": 4,
- "description": "API directory description",
- "parent_folder": {
- "id": 4,
- "title": "API directory",
- "description": "API directory description"
}, - "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,
- "state": 1,
- "archived": true,
- "hidden": true,
- "pinned": false,
- "locked_comments": false,
- "scheduled_at": "2023-09-14 05:15:00",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": "2022-04-13 05:15:43",
- "updated_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "updated_at": "2022-05-21 06:20:18",
- "contentcontainer_id": 5,
- "stream_channel": "default"
}, - "comments": {
- "total": 55,
- "latestComments": [
- {
- "id": 14,
- "message": "Calvin Klein – Between love and madness lies obsession.",
- "objectModel": "humhub\\modules\\post\\models\\Post",
- "objectId": 123,
- "createdBy": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "createdAt": "2018-08-09 14:22:03",
- "commentsCount": 5,
- "comments": [
- { }
]
}
]
}, - "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"
}
]
}
}
]
}| id required | integer The id of content container |
| folder_id required | integer <int64> Id of directory |
| files required | Array of file The files to upload. |
{- "code": 200,
- "message": "Files successfully uploaded!"
}{- "id": 4,
- "description": "API directory description",
- "parent_folder": {
- "id": 4,
- "title": "API directory",
- "description": "API directory description"
}, - "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,
- "state": 1,
- "archived": true,
- "hidden": true,
- "pinned": false,
- "locked_comments": false,
- "scheduled_at": "2023-09-14 05:15:00",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": "2022-04-13 05:15:43",
- "updated_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "updated_at": "2022-05-21 06:20:18",
- "contentcontainer_id": 5,
- "stream_channel": "default"
}, - "comments": {
- "total": 55,
- "latestComments": [
- {
- "id": 14,
- "message": "Calvin Klein – Between love and madness lies obsession.",
- "objectModel": "humhub\\modules\\post\\models\\Post",
- "objectId": 123,
- "createdBy": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "createdAt": "2018-08-09 14:22:03",
- "commentsCount": 5,
- "comments": [
- { }
]
}
]
}, - "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"
}
]
}
}| id required | integer The id of content container |
Array of items
| selection required | Array of strings (Selection) Item id in format {type}_{id} |
{- "selection": [
- "folder_4",
- "file_2"
]
}{- "code": 200,
- "message": "Items successfully marked public!"
}| id required | integer The id of content container |
Array of items
| selection required | Array of strings (Selection) Item id in format {type}_{id} |
{- "selection": [
- "folder_4",
- "file_2"
]
}{- "code": 200,
- "message": "Items successfully marked private!"
}| id required | integer The id of content container |
Directory information
| source_id required | integer <int64> |
required | object |
| selection required | Array of strings (Selection) Item id in format {type}_{id} |
{- "source_id": 14,
- "MoveForm": {
- "destId": 3
}, - "selection": [
- "folder_4",
- "file_2"
]
}{- "code": 200,
- "message": "Items successfully moved."
}| id required | integer The id of content container |
Array of items
| selection required | Array of strings (Selection) Item id in format {type}_{id} |
{- "selection": [
- "folder_4",
- "file_2"
]
}{- "code": 200,
- "message": "Selected items are successfully deleted!"
}