Blocklet Service icon

Blocklet Service

Consume Blocklet Service API

User → Update User Approval

AI-generated

Overview

This node updates the approval status of a user identified by their DID (Decentralized Identifier) in the Blocklet Service. It is useful in scenarios where user access or permissions need to be managed dynamically, such as approving or revoking user access in an application or service.

Use Case Examples

  1. Approving a new user after verification.
  2. Revoking approval for a user who no longer meets criteria.

Properties

Name Meaning
User DID The DID of the user whose approval status is to be updated.
User Approved? Boolean flag indicating whether the user is approved (true) or not (false).

Output

JSON

  • user
    • did - The DID of the user whose approval status was updated.
    • approved - The updated approval status of the user.

Dependencies

  • Blocklet Service API with appropriate authentication credentials

Troubleshooting

  • Ensure the provided User DID is valid and exists in the Blocklet Service; invalid DIDs will cause errors.
  • Check that the API credentials for the Blocklet Service are correctly configured and have permissions to update user approval.
  • Common error messages include 'Not implemented user action' if the operation name is incorrect, or API errors related to invalid parameters or network issues.

Discussion