Download OpenAPI specification:Download
Welcome to the HumHub calendar 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 event by API",
 - "description": "Space event by API description",
 - "start_datetime": "2019-02-27 00:00:00",
 - "end_datetime": "2019-02-28 23:59:00",
 - "all_day": 1,
 - "participation_mode": 2,
 - "color": "#6fdbe8",
 - "allow_decline": 1,
 - "allow_maybe": 1,
 - "time_zone": "America/Los_Angeles",
 - "participant_info": "",
 - "closed": 0,
 - "max_participants": null,
 - "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"
 
} 
] 
} 
} 
] 
}| id  required   | integer  ID of content container  | 
| topics | string   Example:  topics=Music,Dancing Coma separated list of topics to filter  | 
| 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 event by API",
 - "description": "Space event by API description",
 - "start_datetime": "2019-02-27 00:00:00",
 - "end_datetime": "2019-02-28 23:59:00",
 - "all_day": 1,
 - "participation_mode": 2,
 - "color": "#6fdbe8",
 - "allow_decline": 1,
 - "allow_maybe": 1,
 - "time_zone": "America/Los_Angeles",
 - "participant_info": "",
 - "closed": 0,
 - "max_participants": null,
 - "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"
 
} 
] 
} 
} 
] 
}| id  required   | integer  The id of content container  | 
Calendar entry information
 required   | object   | 
 required   | object   | 
object (Content)    | 
{- "CalendarEntry": {
- "title": "Api calendar event",
 - "description": "Api calendar event description",
 - "color": "#6fdbe8",
 - "all_day": 0,
 - "participation_mode": 2,
 - "max_participants": null,
 - "allow_decline": 1,
 - "allow_maybe": 1,
 - "participant_info": ""
 
}, - "CalendarEntryForm": {
- "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",
 - "forceJoin": 0,
 - "topics": [
- 3
 
] 
}, - "content": {
- "metadata": {
- "visibility": 1,
 - "archived": true,
 - "pinned": false,
 - "locked_comments": false
 
}, - "topics": [
- {
- "name": "News"
 
} 
] 
} 
}{- "id": 6,
 - "title": "Space event by API",
 - "description": "Space event by API description",
 - "start_datetime": "2019-02-27 00:00:00",
 - "end_datetime": "2019-02-28 23:59:00",
 - "all_day": 1,
 - "participation_mode": 2,
 - "color": "#6fdbe8",
 - "allow_decline": 1,
 - "allow_maybe": 1,
 - "time_zone": "America/Los_Angeles",
 - "participant_info": "",
 - "closed": 0,
 - "max_participants": null,
 - "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"
 
} 
] 
} 
}{- "id": 6,
 - "title": "Space event by API",
 - "description": "Space event by API description",
 - "start_datetime": "2019-02-27 00:00:00",
 - "end_datetime": "2019-02-28 23:59:00",
 - "all_day": 1,
 - "participation_mode": 2,
 - "color": "#6fdbe8",
 - "allow_decline": 1,
 - "allow_maybe": 1,
 - "time_zone": "America/Los_Angeles",
 - "participant_info": "",
 - "closed": 0,
 - "max_participants": null,
 - "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"
 
} 
] 
} 
}| id  required   | integer  The id of the calendar entry  | 
Calendar entry information
 required   | object   | 
 required   | object   | 
object (Content)    | 
{- "CalendarEntry": {
- "title": "Api calendar event",
 - "description": "Api calendar event description",
 - "color": "#6fdbe8",
 - "all_day": 0,
 - "participation_mode": 2,
 - "max_participants": null,
 - "allow_decline": 1,
 - "allow_maybe": 1,
 - "participant_info": ""
 
}, - "CalendarEntryForm": {
- "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",
 - "forceJoin": 0,
 - "sendUpdateNotification": 0,
 - "topics": [
- 3
 
] 
}, - "content": {
- "metadata": {
- "visibility": 1,
 - "archived": true,
 - "pinned": false,
 - "locked_comments": false
 
}, - "topics": [
- {
- "name": "News"
 
} 
] 
} 
}{- "id": 6,
 - "title": "Space event by API",
 - "description": "Space event by API description",
 - "start_datetime": "2019-02-27 00:00:00",
 - "end_datetime": "2019-02-28 23:59:00",
 - "all_day": 1,
 - "participation_mode": 2,
 - "color": "#6fdbe8",
 - "allow_decline": 1,
 - "allow_maybe": 1,
 - "time_zone": "America/Los_Angeles",
 - "participant_info": "",
 - "closed": 0,
 - "max_participants": null,
 - "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"
 
} 
] 
} 
}| id  required   | integer  The id of the calendar entry  | 
| files  required   | Array of file[ items ]  The files to upload.  | 
{- "code": 200,
 - "message": "Files successfully uploaded."
 
}| id  required   | integer  The id of the calendar entry  | 
| type  required   | integer <int64>   Enum: 0 1 2 3   Participant type: 
  | 
{- "type": 3
 
}{- "code": 200,
 - "message": "Participation successfully changed."
 
}