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 fetches all answers for a specified survey from the HumHub API. It supports retrieving either all answers or a limited subset based on pagination parameters. This is useful for scenarios where you need to analyze or process survey responses programmatically, such as generating reports or integrating survey data with other systems.
Use Case Examples
- Retrieve all answers for a survey with ID 123 to analyze user feedback.
- Fetch the first 20 survey answers for survey ID 456 to display in a dashboard with pagination.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication to use for the API request (Basic Auth or JWT Token). |
| Survey ID | The unique identifier of the survey for which answers are to be retrieved. |
| Return All | Whether to return all survey answers or limit the results to a specified number. |
| Query Parameters | Additional parameters for pagination when not returning all results, including limit and page number. |
Output
JSON
- ``
id- Unique identifier of each survey answer.surveyId- ID of the survey to which the answer belongs.answers- The actual answers provided in the survey response.createdAt- Timestamp when the survey answer was submitted.
Dependencies
- HumHub API
Troubleshooting
- Ensure the Survey ID is valid and the survey exists in HumHub to avoid 404 errors.
- If authentication fails, verify that the correct authentication method and credentials are provided.
- When using pagination, ensure the limit is between 1 and 50 to avoid API errors.
- If no answers are returned, check if the survey has any responses or if query parameters are filtering out results.
Links
- HumHub Survey Answers API Documentation - Official API documentation for managing survey answers in HumHub.
