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 updates the visibility flag of a default prompt template, specifying whether it should be visible or hidden to users. It is useful in scenarios where administrators want to control the availability of default prompt templates within their environment, for example, hiding certain templates from end users while keeping them active for administrative purposes.

Practical examples:

  • An admin wants to hide a default prompt template that is deprecated but still referenced internally.
  • Making a new default prompt template visible to all users after testing.
  • Temporarily hiding a default prompt template during maintenance or updates.

Properties

Name Meaning
Prompt Template ID The unique identifier of the prompt template whose visibility is being updated.
Is Visible Boolean flag indicating whether the default prompt template should be visible (true) or hidden (false) to users.

Output

The output contains the full HTTP response from the API call that updates the visibility status of the default prompt template. The json field will typically include confirmation of the update or details about the prompt template's new visibility state.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authentication with the external service.
  • The node sends a PUT request to the endpoint /prompt_templates/{prompt_template_id}/is_visible.
  • The base URL and headers are configured via credentials and node settings.

Troubleshooting

  • Invalid Prompt Template ID: If the provided prompt template ID does not exist, the API may return a 404 error. Verify the ID is correct.
  • Authentication Errors: Missing or invalid API key credentials will cause authentication failures. Ensure valid credentials are configured.
  • Permission Denied: Insufficient permissions to update prompt templates can result in authorization errors. Confirm the user has appropriate rights.
  • Network Issues: Connectivity problems can cause request failures. Check network access to the API endpoint.
  • Invalid Payload: The is_visible property must be a boolean; sending other types may cause validation errors.

Links and References

  • Refer to the API documentation of the prompt template management system for details on updating prompt template visibility.
  • n8n documentation on how to configure API key credentials and use HTTP request nodes.

Discussion