Blocklet Service icon

Blocklet Service

Consume Blocklet Service API

Overview

This node interacts with a Blocklet Service API to manage user data, specifically allowing you to update the approval status of a user identified by their DID (Decentralized Identifier). It is useful in scenarios where you need to programmatically approve or disapprove users within a system that uses DIDs for identity management.

For example, you might use this node in an automated workflow to approve users after verifying their credentials or to revoke approval based on certain conditions.

Properties

Name Meaning
User DID The Decentralized Identifier (DID) of the user whose approval status you want to update.
User Approved? Boolean flag indicating whether the user should be marked as approved (true) or not (false).

Output

The node outputs JSON data representing the response from the Blocklet Service API after attempting to update the user's approval status. This typically includes details about the updated user object, reflecting the new approval state.

No binary data output is produced by this operation.

Dependencies

  • Requires connection to the Blocklet Service API.
  • Needs an API authentication token or key configured in n8n credentials to authorize requests to the Blocklet Service.
  • The node depends on internal helper functions to make API requests and handle pagination or sorting if applicable.

Troubleshooting

  • Common issues:

    • Invalid or missing User DID: Ensure the DID provided is correct and exists in the Blocklet Service.
    • Authentication errors: Verify that the API key or token credential is correctly set up and has sufficient permissions.
    • Network or service unavailability: Check connectivity to the Blocklet Service endpoint.
  • Error messages:

    • "Not implemented user action: updateUserApproval": Indicates a misconfiguration or unsupported operation; ensure the operation parameter is correctly set to "updateUserApproval".
    • API error messages returned from the service will be passed through; check the message for details such as invalid parameters or permission issues.

Links and References

Discussion