Download OpenAPI specification:Download
Welcome to the HumHub user 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": 23,
- "title": "Hi guys!",
- "created_at": "2020-10-28 10:16:34",
- "created_by": 1,
- "updated_at": "2020-10-28 10:17:22",
- "updated_by": 2
}
]
}
Data for new conversation
title required | string Conversation title |
message required | string First entry content |
recipient required | Array of any Guid of users |
{- "title": "Conversation from API",
- "message": "First message from API",
- "recipient": [
- "8eddbecb-8207-4848-bba6-5910115d3e4a",
- "b6b66077-916d-4718-af28-5ffc20895d30"
]
}
{- "id": 23,
- "title": "Hi guys!",
- "created_at": "2020-10-28 10:16:34",
- "created_by": 1,
- "updated_at": "2020-10-28 10:17:22",
- "updated_by": 2
}
messageId required | integer The id of conversation |
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": 23,
- "user_id": 1,
- "content": "Sample message",
- "type": 0,
- "created_at": "2020-10-28 10:16:34",
- "created_by": 1,
- "updated_at": "2020-10-28 10:17:22",
- "updated_by": 2
}
]
}
messageId required | integer The id of conversation |
Data for new conversation entry
message required | string Conversation entry content |
{- "message": "Sample entry content from API"
}
{- "id": 23,
- "user_id": 1,
- "content": "Sample message",
- "type": 0,
- "created_at": "2020-10-28 10:16:34",
- "created_by": 1,
- "updated_at": "2020-10-28 10:17:22",
- "updated_by": 2
}
messageId required | integer The id of conversation |
entryId required | integer The id of entry |
{- "id": 23,
- "user_id": 1,
- "content": "Sample message",
- "type": 0,
- "created_at": "2020-10-28 10:16:34",
- "created_by": 1,
- "updated_at": "2020-10-28 10:17:22",
- "updated_by": 2
}
messageId required | integer The id of conversation |
entryId required | integer The id of entry |
Data to update conversation entry
content required | string Conversation entry content |
{- "content": "Updated sample entry content from API"
}
{- "id": 23,
- "user_id": 1,
- "content": "Sample message",
- "type": 0,
- "created_at": "2020-10-28 10:16:34",
- "created_by": 1,
- "updated_at": "2020-10-28 10:17:22",
- "updated_by": 2
}
messageId required | integer The id of conversation |
[- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
- "account": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "username": "john.doe",
- "email": "john.doe@example.com",
- "visibility": 0,
- "status": 1,
- "tags": [
- "Administration",
- "Support",
- "HumHub"
], - "language": "DE",
- "time_zone": "Europe/Paris",
- "contentcontainer_id": 5
}, - "profile": {
- "firstname": "John",
- "lastname": "Doe",
- "title": "Test user",
- "gender": "male",
- "street": "New Street 5",
- "zip": 80331,
- "city": "Munich",
- "country": "DE (ISO 3166 code)",
- "state": "string",
- "birthday_hide_year": 0,
- "birthday": "1990-01-01",
- "about": "string",
- "phone_private": "string",
- "phone_work": "string",
- "mobile": "string",
- "fax": "string",
- "im_skype": "string",
- "im_xmpp": "string",
- "url": "string",
- "url_facebook": "string",
- "url_linkedin": "string",
- "url_xing": "string",
- "url_youtube": "string",
- "url_vimeo": "string",
- "url_flickr": "string",
- "url_myspace": "string",
- "url_twitter": "string"
}
}
]
messageId required | integer The id of conversation |
userId required | integer The id of user |
[- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
- "account": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "username": "john.doe",
- "email": "john.doe@example.com",
- "visibility": 0,
- "status": 1,
- "tags": [
- "Administration",
- "Support",
- "HumHub"
], - "language": "DE",
- "time_zone": "Europe/Paris",
- "contentcontainer_id": 5
}, - "profile": {
- "firstname": "John",
- "lastname": "Doe",
- "title": "Test user",
- "gender": "male",
- "street": "New Street 5",
- "zip": 80331,
- "city": "Munich",
- "country": "DE (ISO 3166 code)",
- "state": "string",
- "birthday_hide_year": 0,
- "birthday": "1990-01-01",
- "about": "string",
- "phone_private": "string",
- "phone_work": "string",
- "mobile": "string",
- "fax": "string",
- "im_skype": "string",
- "im_xmpp": "string",
- "url": "string",
- "url_facebook": "string",
- "url_linkedin": "string",
- "url_xing": "string",
- "url_youtube": "string",
- "url_vimeo": "string",
- "url_flickr": "string",
- "url_myspace": "string",
- "url_twitter": "string"
}
}
]
messageId required | integer The id of conversation |
userId required | integer The id of user |
[- {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "display_name": "John Doe",
- "account": {
- "id": 14,
- "guid": "cd081891-d2e2-40d5-84a4-b47309e71c80",
- "username": "john.doe",
- "email": "john.doe@example.com",
- "visibility": 0,
- "status": 1,
- "tags": [
- "Administration",
- "Support",
- "HumHub"
], - "language": "DE",
- "time_zone": "Europe/Paris",
- "contentcontainer_id": 5
}, - "profile": {
- "firstname": "John",
- "lastname": "Doe",
- "title": "Test user",
- "gender": "male",
- "street": "New Street 5",
- "zip": 80331,
- "city": "Munich",
- "country": "DE (ISO 3166 code)",
- "state": "string",
- "birthday_hide_year": 0,
- "birthday": "1990-01-01",
- "about": "string",
- "phone_private": "string",
- "phone_work": "string",
- "mobile": "string",
- "fax": "string",
- "im_skype": "string",
- "im_xmpp": "string",
- "url": "string",
- "url_facebook": "string",
- "url_linkedin": "string",
- "url_xing": "string",
- "url_youtube": "string",
- "url_vimeo": "string",
- "url_flickr": "string",
- "url_myspace": "string",
- "url_twitter": "string"
}
}
]