HumHub icon

HumHub

Consume HumHub API (v.0.1.8)

Actions126

Overview

This node operation retrieves all surveys associated with a specific content container in the HumHub platform. It supports filtering by topics and allows users to either fetch all surveys or limit the number of results with pagination. This is useful for scenarios where you want to gather survey data related to a particular container, such as a group or space, for analysis or reporting.

Use Case Examples

  1. Fetch all surveys from a content container with ID 123, filtering by topics 'Music' and 'Dancing'.
  2. Retrieve the first 20 surveys from a content container with ID 456, 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 surveys.
Additional Fields Optional additional fields to filter the surveys, such as a comma-separated list of topics.
Return All Whether to return all surveys or limit the results.
Query Parameters Parameters for pagination when not returning all results, including limit and page number.

Output

JSON

  • `` - Array of survey objects retrieved from the specified content container.

Dependencies

  • HumHub API

Troubleshooting

  • Ensure the content container ID is valid and accessible with the provided authentication.
  • If filtering by topics, ensure the topics string is correctly formatted as comma-separated values.
  • When not returning all results, verify that the limit is between 1 and 50 and the page number is valid.
  • Common errors include authentication failures (check credentials) and invalid container ID errors (verify the ID).

Links

Discussion