IONOS Cloud AI icon

IONOS Cloud AI

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

Actions14

Document → Update

AI-generated

Summary

Update a document in a specified collection using the IONOS Cloud AI API.

Inputs

  • apiType — Type of AI API to use; 'native' for IONOS native endpoint or 'openai' for OpenAI-compatible endpoint.
  • region — Region for the API; currently only 'de-txl' (Berlin) is supported.
  • collectionId (required) — ID of the collection containing the document.
  • documentId (required) — ID of the document to update.
  • updateFields — Fields to update; supports 'name', 'content', and 'description' sub‑fields.

Output shape

updated document object

Returns the updated document; may include a success indicator for delete operations but generally returns the updated document.

Examples

Example 1: Update a document's content and description

apiType=native, region=de-txl, collectionId=550e8400..., documentId=4b71d0..., updateFields={content='New content', description='Updated description'}

Example 2: Add additional metadata to a document

apiType=native, region=de-txl, collectionId=550e8400..., documentId=4b71d0..., updateFields={description='Added metadata'}

Example 3: Rename a document

apiType=native, region=de-txl, collectionId=550e8400..., documentId=4b71d0..., updateFields={name='New Name'}

Links

Discussion