Download OpenAPI specification:Download
Welcome to the HumHub space 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": 1,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "name": "Welcome Space",
- "description": "Your first sample space to discover the platform.",
- "contentcontainer_id": 1,
- "visibility": 1,
- "join_policy": 1,
- "status": 1,
- "tags": [
- "First tag",
- "Second tag"
], - "owner": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "hideMembers": 1,
- "hideAbout": 0,
- "hideActivities": 1,
- "hideFollowers": 0,
- "indexUrl": "/s/welcome-space/space/space/home",
- "indexGuestUrl": "/s/welcome-space/space/space/home"
}
]
}
Space base info and visibility settings
name required | string |
description | string |
visibility required | integer <int64> |
join_policy required | integer <int64> |
{- "name": "Welcome space",
- "description": "Your first sample space to discover the platform.",
- "visibility": 1,
- "join_policy": 1
}
{- "id": 1,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "name": "Welcome Space",
- "description": "Your first sample space to discover the platform.",
- "contentcontainer_id": 1,
- "visibility": 1,
- "join_policy": 1,
- "status": 1,
- "tags": [
- "First tag",
- "Second tag"
], - "owner": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "hideMembers": 1,
- "hideAbout": 0,
- "hideActivities": 1,
- "hideFollowers": 0,
- "indexUrl": "/s/welcome-space/space/space/home",
- "indexGuestUrl": "/s/welcome-space/space/space/home"
}
{- "id": 1,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "name": "Welcome Space",
- "description": "Your first sample space to discover the platform.",
- "contentcontainer_id": 1,
- "visibility": 1,
- "join_policy": 1,
- "status": 1,
- "tags": [
- "First tag",
- "Second tag"
], - "owner": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "hideMembers": 1,
- "hideAbout": 0,
- "hideActivities": 1,
- "hideFollowers": 0,
- "indexUrl": "/s/welcome-space/space/space/home",
- "indexGuestUrl": "/s/welcome-space/space/space/home"
}
id required | integer The id of space |
Space base info and settings
name | string |
description | string |
tagsField | Array of strings |
color | string |
url | string |
visibility | integer <int64> |
join_policy | integer <int64> |
default_content_visibility | integer <int64> |
hideMembers | boolean |
hideAbout | boolean |
hideActivities | boolean |
hideFollowers | boolean |
indexUrl | string |
indexGuestUrl | string |
{- "name": "Welcome space",
- "description": "Your first sample space to discover the platform.",
- "tagsField": [
- "First tag",
- "Second tag"
], - "color": "#eeeeee",
- "url": "welcome-space",
- "visibility": 1,
- "join_policy": 1,
- "default_content_visibility": 1,
- "hideMembers": true,
- "hideAbout": false,
- "hideActivities": true,
- "hideFollowers": false,
- "indexUrl": "/s/welcome-space/space/space/home",
- "indexGuestUrl": "/s/welcome-space/space/space/home"
}
{- "id": 1,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "name": "Welcome Space",
- "description": "Your first sample space to discover the platform.",
- "contentcontainer_id": 1,
- "visibility": 1,
- "join_policy": 1,
- "status": 1,
- "tags": [
- "First tag",
- "Second tag"
], - "owner": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "hideMembers": 1,
- "hideAbout": 0,
- "hideActivities": 1,
- "hideFollowers": 0,
- "indexUrl": "/s/welcome-space/space/space/home",
- "indexGuestUrl": "/s/welcome-space/space/space/home"
}
{- "total": 76,
- "page": 1,
- "results": [
- {
- "role": "member",
- "status": 3,
- "can_cancel_membership": false,
- "send_notifications": false,
- "show_at_dashboard": false,
- "originator_user": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}, - "member_since": "2019-12-01 11:43:16",
- "request_message": "Please add me to this space!",
- "updated_at": "2019-12-30 11:00:59",
- "last_visit": "2020-01-15 14:00:59",
- "user": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
}
}
]
}
id required | integer The id of space |
userId required | integer The id of user |
silent | boolean Default: false Send added notification to the user |
canLeave | integer Default: 1 0: user cannot cancel membership | 1: can cancel membership | 2: depending on space flag members_can_leave |
showAtDashboard | boolean Default: true Show at dashboard |
id required | integer The id of space |
userId required | integer The id of user |
Space membership role
role | string admin, member or moderator |
{- "role": "admin"
}
{- "code": 200,
- "message": "Member updated!"
}