LearningSuite icon

LearningSuite

Interact with LearningSuite API (powered by agentur-systeme.de)

Overview

This node integrates with the LearningSuite API to manage module access for members within courses. Specifically, the "Change Module Access for Member" operation allows users to modify how a particular member can access a given module in a course. This is useful in scenarios such as:

  • Granting early or special access to certain modules for specific members.
  • Restricting access to modules based on membership status or progress.
  • Customizing learning paths by dynamically changing module visibility or availability.

For example, an instructor might use this node to set a module's access to "Published" for a member who has completed prerequisites, or hide a module from a member who is not enrolled in a particular course instance.

Properties

Name Meaning
Course Name or ID Optional filter to specify the course containing the module. You can select from a list of courses or provide an ID via expression.
Module Name or ID Required. Select the module to change access for. Optionally filtered by course if specified. Can be chosen from a list or provided as an ID via expression.
Member Name or ID Optional member (user) for whom the module access will be changed. Choose from a list or specify an ID using an expression.
New Module Access The new access mode for the module for the specified member. Options are:
- On Demand
- Published
- Hidden
Additional Options Collection of optional parameters:
- Course Instance Name or ID: If specified, the access change applies to the entire course instance rather than just the module. Choose from a list or specify an ID via expression.

Output

The node outputs a JSON array where each item corresponds to the result of the access change operation for a module-member combination. The structure typically includes confirmation details returned by the LearningSuite API about the updated access state.

If the operation fails for any input item and "Continue On Fail" is enabled, the output will include an error object with the message and the original input data for that item.

No binary data output is involved in this operation.

Dependencies

  • Requires a valid API key credential for the LearningSuite API.
  • The node depends on the LearningSuite API endpoints for courses, modules, and members to load options and perform the access change.
  • Proper configuration of the base URL and authentication credentials in n8n is necessary.

Troubleshooting

  • Common Issues:

    • Providing invalid or non-existent IDs for courses, modules, or members may cause errors.
    • Omitting the required "Module Name or ID" property will prevent execution.
    • Insufficient permissions or incorrect API credentials can lead to authorization errors.
    • Specifying a course instance ID incorrectly may cause the access change to apply improperly or fail.
  • Error Messages:

    • "No handler for resource "module" and operation "createUnlockOverride": Indicates the operation is not supported or misspelled.
    • API errors related to invalid IDs or unauthorized access will be passed through; verify all IDs and credentials.
    • Network or connectivity issues will manifest as request failures; ensure the API endpoint is reachable.

To resolve errors, verify all input parameters, ensure correct API credentials, and check network connectivity.

Links and References

Discussion