Actions56
- API Call Actions
- Bundle Actions
- Community Actions
- Course Actions
- Group Actions
- Hub Actions
- Member Actions
- Module Actions
- Popup Actions
- Webhook Actions
Overview
The "Create Hub" operation in the LearningSuite node allows users to create a new hub within the LearningSuite platform. A hub can be thought of as a container or workspace that organizes content, courses, or other resources. This operation is useful for automating the setup of new hubs programmatically, such as when onboarding new clients, creating dedicated learning spaces for different teams, or managing multiple hubs dynamically.
Practical examples include:
- Automatically creating a hub for a new department in an organization.
- Setting up hubs based on predefined templates with specific configurations.
- Publishing hubs immediately after creation to make them available without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Hub Name | The name of the hub to be created. |
| Template Name or ID | The ID of the hub template to use. Users can select from a list of available templates or specify an ID via expression. |
| Additional Options | A collection of optional settings: |
| - Hub Description | A textual description of the hub. |
| - Publish Hub | Boolean flag indicating whether the hub should be published immediately after creation (default: true). |
| - Sort Index | Numeric value defining the sort order index of the hub. |
| - Template Variables | Optional JSON object containing variables to customize the selected template during hub creation. |
Output
The output is a JSON array where each element represents the result of creating a hub. Each JSON object typically contains details about the newly created hub, such as its ID, name, status, and any other metadata returned by the LearningSuite API.
If the node supports binary data output, it would represent associated files or media related to the hub, but this operation primarily outputs JSON data describing the created hub.
Dependencies
- Requires an active connection to the LearningSuite API, authenticated via an API key credential configured in n8n.
- The base URL for the API must be set in the node credentials.
- The node depends on the LearningSuite API's availability and correct configuration of templates accessible to the user.
Troubleshooting
Common Issues:
- Invalid or missing template ID: Ensure the template ID exists and is accessible.
- Authentication errors: Verify that the API key credential is valid and has necessary permissions.
- Network issues: Confirm connectivity to the LearningSuite API endpoint.
- JSON syntax errors in template variables: Validate JSON formatting before input.
Error Messages:
"No handler for resource "hub" and operation "create": Indicates a misconfiguration or unsupported operation; verify resource and operation names.- API error responses will be passed through; check the message for details like permission denied or invalid parameters.
Resolutions:
- Double-check all required fields are provided.
- Use the load options feature to select valid template IDs.
- Enable "Continue On Fail" to handle errors gracefully in workflows.
Links and References
- LearningSuite API Documentation (example link, replace with actual)
- n8n Expressions Documentation
- JSON Validator Tools for validating template variables input