Download OpenAPI specification:Download
Welcome to the HumHub cFiles module API reference.
id required | integer The 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,
- "results": [
- {
- "id": 4,
- "title": "API directory",
- "description": "API directory description",
- "parent_folder_id": 1,
- "type": null,
- "created_at": "2021-04-08T10:42:21.203Z",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "content": {
- "metadata": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": null,
- "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": "2021-04-08T10:42:21.204Z"
}
]
}, - "likes": {
- "total": 35
}, - "files": {
- "id": 14,
- "guid": "bded6dc7-e6f4-417e-a638-b653525529ca",
- "mime_type": "text/plain",
- "size": 14353,
- "file_name": "image.jpg",
}, - "topics": {
- "topic": [
- null
]
}
}
}
]
}
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": "2021-04-08T10:42:21.203Z",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "content": {
- "metadata": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": null,
- "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": "2021-04-08T10:42:21.204Z"
}
]
}, - "likes": {
- "total": 35
}, - "files": {
- "id": 14,
- "guid": "bded6dc7-e6f4-417e-a638-b653525529ca",
- "mime_type": "text/plain",
- "size": 14353,
- "file_name": "image.jpg",
}, - "topics": {
- "topic": [
- null
]
}
}
}
{- "id": 4,
- "title": "API directory",
- "description": "API directory description",
- "parent_folder_id": 1,
- "type": null,
- "created_at": "2021-04-08T10:42:21.203Z",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "content": {
- "metadata": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": null,
- "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": "2021-04-08T10:42:21.204Z"
}
]
}, - "likes": {
- "total": 35
}, - "files": {
- "id": 14,
- "guid": "bded6dc7-e6f4-417e-a638-b653525529ca",
- "mime_type": "text/plain",
- "size": 14353,
- "file_name": "image.jpg",
}, - "topics": {
- "topic": [
- null
]
}
}
}
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": "2021-04-08T10:42:21.203Z",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "content": {
- "metadata": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": null,
- "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": "2021-04-08T10:42:21.204Z"
}
]
}, - "likes": {
- "total": 35
}, - "files": {
- "id": 14,
- "guid": "bded6dc7-e6f4-417e-a638-b653525529ca",
- "mime_type": "text/plain",
- "size": 14353,
- "file_name": "image.jpg",
}, - "topics": {
- "topic": [
- null
]
}
}
}
id required | integer The 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,
- "results": [
- {
- "id": 4,
- "description": "API directory description",
- "parent_folder": {
- "id": 4,
- "title": "API directory",
- "description": "API directory description"
}, - "created_at": "2021-04-08T10:42:21.203Z",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "content": {
- "metadata": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": null,
- "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": "2021-04-08T10:42:21.204Z"
}
]
}, - "likes": {
- "total": 35
}, - "files": {
- "id": 14,
- "guid": "bded6dc7-e6f4-417e-a638-b653525529ca",
- "mime_type": "text/plain",
- "size": 14353,
- "file_name": "image.jpg",
}, - "topics": {
- "topic": [
- null
]
}
}
}
]
}
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": "2021-04-08T10:42:21.203Z",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "content": {
- "metadata": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "created_by": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "created_at": null,
- "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": "2021-04-08T10:42:21.204Z"
}
]
}, - "likes": {
- "total": 35
}, - "files": {
- "id": 14,
- "guid": "bded6dc7-e6f4-417e-a638-b653525529ca",
- "mime_type": "text/plain",
- "size": 14353,
- "file_name": "image.jpg",
}, - "topics": {
- "topic": [
- null
]
}
}
}
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!"
}