Actions14
Document → Add
AI-generatedSummary
Adds one or more documents to a specified collection in the IONOS AI Model Hub using the native API.
Inputs
- apiType — Type of API to use; must be 'Native API' (default) for document operations. Options: Native API (value: native) or OpenAI Compatible (value: openai).
- region — Region for the API; defaults to 'Berlin (de-txl)'. Only option available: Berlin (de-txl) (value: de-txl).
- collectionId (required) — UUID of the collection where documents will be added (e.g., 550e8400-e29b-41d4-a716-446655440000).
- documents (required) — List of documents to add. Each document requires: Name (string, 3-256 characters), Content (string, auto base64-encoded), Content Type (fixed to text/plain). Optional: Description (string, max 1024 characters).
Output shape
Array of objects, each containing the API response under the json property. For successful document addition, the response includes the created document(s) details.
The node processes each input item separately. For each input item, it sends one request to add all specified documents in the
documentsparameter to the collection identified bycollectionId.
Examples
Example 1: Add two text documents to a collection
apiType: Native API (default), region: Berlin (de-txl) (default), collectionId: '550e8400-e29b-41d4-a716-446655440000', documents: [ { name: 'doc1.txt', content: 'Hello world', description: 'First doc' }, { name: 'doc2.txt', content: 'Foo bar' } ]