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 "Resets and Shares a Prompt Template to a New List of Groups" allows users to reset the sharing settings of an existing prompt template and assign access permissions to a new list of groups. This is useful when you want to revoke all previous group accesses to a prompt template and share it freshly with a different set of groups, ensuring controlled and updated access management.

Practical scenarios include:

  • Updating which teams or departments have access to a specific prompt template in an organization.
  • Quickly revoking old group permissions and assigning new ones without manually unsharing and resharing.
  • Managing prompt templates in environments where access control needs frequent updates based on project or organizational changes.

Properties

Name Meaning
Prompt Template ID The unique identifier of the prompt template to reset and share.
Additional Options Collection of optional parameters:
- Groups A string representing the new list of groups (likely as a serialized list or comma-separated) that will be granted access to the prompt template after reset.

Output

The output of this operation is the full HTTP response from the API call that resets and shares the prompt template with the specified groups. The json field typically contains the updated permission information or confirmation of the successful update. No binary data output is expected.

Dependencies

  • Requires an API key credential for authentication to the backend service.
  • The node sends a PUT request to the endpoint /prompt_templates/{prompt_template_id}/group_permissions with the new groups list in the request body.
  • The base URL and headers are configured via credentials and node defaults.

Troubleshooting

  • Invalid Prompt Template ID: If the provided prompt template ID does not exist or is incorrect, the API may return a 404 error. Verify the ID before running the node.
  • Insufficient Permissions: If the API key used lacks permission to modify prompt template sharing, the request will fail with an authorization error. Ensure the API key has adequate rights.
  • Malformed Groups Data: The groups parameter must be correctly formatted as expected by the API (e.g., JSON array or comma-separated string). Incorrect formatting can cause request failures.
  • Network Issues: Connectivity problems or incorrect base URL configuration can lead to request timeouts or connection errors.

Links and References

  • Refer to your platform's API documentation for prompt template permission management endpoints.
  • Consult your organization's API key and permission setup guides to ensure proper authentication and authorization.

If you need further details or examples on how to format the groups parameter or handle responses, please let me know!

Discussion