IONOS Cloud AI icon

IONOS Cloud AI

Interact with IONOS Cloud AI Model Hub API. Developped with Love by Ascenzia (ascenzia.fr)

Actions14

Document → Add

AI-generated

Summary

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 documents parameter to the collection identified by collectionId.

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' } ]

Links

Discussion