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 privacy status of a collection by setting a flag that specifies whether the collection is private or public. It is useful in scenarios where you want to control access visibility of collections, for example, making a collection accessible to all users (public) or restricting it to certain users (private). Practical use cases include managing document libraries, knowledge bases, or grouped data sets where privacy settings need to be dynamically adjusted.

Properties

Name Meaning
Collection ID The unique identifier of the collection whose privacy setting you want to update.
Is Public A boolean flag indicating whether the collection should be public (true) or private (false).

Output

The output contains the full HTTP response from the API after updating the collection's privacy flag. The json field will typically include confirmation details about the updated collection privacy status. There is no binary data output for this operation.

Dependencies

  • Requires an API key credential for authentication with the external service.
  • The base URL for API requests is configured via credentials and must point to the appropriate API endpoint.
  • The node sends a POST request to the endpoint /collections/{collection_id}/is_public with the is_public flag in the request body.

Troubleshooting

  • Invalid Collection ID: If the provided collection ID does not exist or is malformed, the API may return an error indicating the collection was not found. Verify the collection ID is correct.
  • Authentication Errors: Missing or invalid API key credentials will cause authentication failures. Ensure valid credentials are configured.
  • Permission Denied: If the user associated with the API key lacks permission to modify the collection, an authorization error will occur. Check user permissions.
  • Network Issues: Connectivity problems can cause request failures. Confirm network access to the API endpoint.
  • Invalid is_public Value: The is_public property must be a boolean. Providing other types may result in validation errors.

Links and References

  • Refer to the API documentation of the service managing collections for detailed information on the /collections/{collection_id}/is_public endpoint.
  • Consult n8n documentation on how to configure API key credentials and handle HTTP request nodes.

Discussion