Actions126
- User Actions
- Group Actions
- Content Actions
- Post Actions
- Comment Actions
- Like Actions
- Activity Actions
- Notification Actions
- Space Actions
- Calendar Actions
- CFile Directory Actions
- CFile Actions
- CFile Item Management Actions
- Survey Actions
- Task Actions
- Task List Actions
- Wiki Page Actions
- Mail Conversation Actions
- Mail Entry Actions
- Mail Recipient Actions
- Session Actions
- File Actions
- Space Membership Actions
- Topic Actions
- Survey Answer Actions
- Survey Answers Actions
- Wiki Page Revision Actions
- Mail Tag Actions
Overview
This node operation retrieves all posts associated with a specific content container in HumHub. It supports filtering posts by topics and allows fetching either all posts or a limited number of posts with pagination. This is useful for scenarios where you want to aggregate or analyze posts within a particular container, such as a group or space, and optionally filter them by topics like Music or Dancing.
Use Case Examples
- Fetch all posts from a content container with ID 123.
- Retrieve up to 20 posts from container ID 456 filtered by topics 'Music,Dancing'.
- Get all posts from a container without any topic filtering.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication to use for the API request (Basic Auth or JWT Token). |
| ID | The ID of the content container from which to retrieve posts. |
| Topics | Comma separated list of topics to filter the posts by. |
| Return All | Whether to return all posts or limit the number of posts returned. |
| Query Parameters | Additional query parameters for pagination when not returning all posts, including limit and page number. |
Output
JSON
id- Unique identifier of the post.message- Content message of the post.topics- Topics associated with the post.created_at- Timestamp when the post was created.updated_at- Timestamp when the post was last updated.
Dependencies
- HumHub API
Troubleshooting
- Ensure the content container ID is valid and accessible with the provided authentication.
- If filtering by topics, ensure the topics are correctly formatted as a comma separated string without extra spaces.
- When using pagination, verify that the limit is between 1 and 50 and the page number is positive.
- Common errors include authentication failures (check credentials) and invalid container ID (check if the container exists).
Links
- HumHub API Documentation - Get All Posts By Container - Official API documentation for retrieving posts by container in HumHub.
