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 archives a specified collection along with all its associated data. Archiving a collection typically means marking it as inactive or hidden without permanently deleting it, preserving the data for potential future restoration or auditing purposes.

Use cases include:

  • Temporarily disabling access to a collection and its contents without losing data.
  • Cleaning up active collections by archiving those no longer in use.
  • Managing lifecycle of document groups in knowledge bases or content management systems.

For example, an organization might archive a project-related document collection after project completion to keep the workspace tidy while retaining the documents for compliance reasons.

Properties

Name Meaning
Collection ID The unique identifier of the collection to be archived. This is required to specify which collection should be archived.

Output

The output JSON will contain the full response from the API call that archives the collection. This typically includes status information about the archive operation, such as success confirmation or details about the archived collection.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authentication to the external service managing collections.
  • The node sends a POST request to the endpoint /collections/{collection_id}/archive where {collection_id} is replaced by the provided Collection ID.
  • The base URL and headers are configured via credentials and environment settings.

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 ID is correct.
  • Authentication Errors: Missing or invalid API key credentials will cause authorization failures. Ensure valid credentials are configured.
  • Network Issues: Connectivity problems can prevent the request from completing. Check network access to the API endpoint.
  • Permission Denied: The user associated with the API key may lack permission to archive collections. Confirm appropriate permissions are granted.

Links and References

  • Refer to the API documentation of the collection management system for detailed behavior of the archive endpoint.
  • Consult n8n documentation on configuring API key credentials and HTTP request nodes for integration setup.

Discussion