h2oGPTe icon

h2oGPTe

h2oGPTe is an AI-powered search assistant for your internal teams to answer questions gleaned from large volumes of documents, websites and workplace content.

Actions198

Overview

This node operation removes sharing of a specific prompt template from a user. It revokes the user's access to the prompt template, effectively unsharing it with that user. This is useful in scenarios where you want to restrict or manage access to prompt templates within your organization or team, ensuring only authorized users can use or modify certain templates.

Practical example:
If a prompt template was previously shared with a user who no longer requires access (e.g., they changed roles or left the project), this operation can be used to remove their access without deleting the prompt template itself.

Properties

Name Meaning
Prompt Template ID The unique identifier of the prompt template from which sharing will be removed.
Username The username of the user who will lose access to the specified prompt template.

Output

The output contains the full HTTP response from the API call that performs the unsharing action. Typically, this includes status information indicating whether the removal of sharing was successful. The main data is returned in the json field, which usually confirms the success or failure of the operation.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authentication to the external service.
  • The node sends an HTTP DELETE request to the endpoint:
    /prompt_templates/{prompt_template_id}/permissions/{username}
    where {prompt_template_id} and {username} are replaced by the input parameters.
  • The base URL for the API is configured via credentials and must be set correctly.

Troubleshooting

  • Common issues:

    • Invalid or missing Prompt Template ID or Username will cause the API call to fail.
    • Insufficient permissions or invalid API key may result in authorization errors.
    • Network connectivity issues can prevent the request from completing.
  • Common error messages:

    • 404 Not Found: The prompt template or user does not exist.
    • 403 Forbidden: The API key does not have permission to modify sharing settings.
    • 400 Bad Request: Missing required parameters or malformed request.
  • Resolution tips:

    • Verify that the Prompt Template ID and Username are correct and exist.
    • Ensure the API key credential has sufficient permissions.
    • Check network connectivity and API endpoint configuration.

Links and References

  • Refer to the API documentation of the prompt template management system for details on permissions and sharing endpoints.
  • Consult n8n documentation on how to configure API key credentials and HTTP request nodes.

Discussion