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 permissions of a specified prompt template from all users except the original owner. It is useful in scenarios where you want to revoke access to a prompt template that has been shared broadly, ensuring only the creator retains access. For example, if a prompt template was mistakenly shared with multiple users or groups, this operation can quickly unshare it from everyone else while preserving the owner's access.

Properties

Name Meaning
Prompt Template ID The unique identifier of the prompt template whose sharing will be removed for all other users except the original owner.

Output

The output contains the full HTTP response from the API call that performs the unsharing action. This typically includes status information indicating whether the operation was successful. The json field will contain the response body, which may be empty or include confirmation details depending on the API implementation.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential for authentication to the external service.
  • The node makes an HTTP DELETE request to the endpoint /prompt_templates/{prompt_template_id}/permissions to remove sharing.
  • The base URL and authentication headers must be configured properly in the node credentials.

Troubleshooting

  • Invalid Prompt Template ID: If the provided prompt template ID does not exist or is incorrect, the API will likely return a 404 error. Verify the ID before running the node.
  • Insufficient Permissions: If the API key used does not have permission to modify prompt template sharing, the request will fail with a 403 Forbidden error. Ensure the API key has adequate rights.
  • Network Issues: Connectivity problems or incorrect base URL configuration can cause request failures. Check network connectivity and credential settings.
  • API Rate Limits: Excessive requests might trigger rate limiting; handle such errors by retrying after some delay.

Links and References

  • Refer to the API documentation of the prompt template management system for details on the permissions endpoint and required scopes.
  • Consult n8n documentation on setting up API key credentials and HTTP request nodes for proper configuration.

Discussion