DocRouter Document icon

DocRouter Document

Manage documents in DocRouter.ai

Update

AI-generated

Summary

Update an existing document in DocRouter.ai by modifying its name, associated tag IDs, and metadata.

Inputs

  • Document ID (required) — The ID of the document to update.
  • New Document Name — New name for the document; leave empty to keep the current name.
  • Tag IDs — Comma-separated tag IDs to associate with the document.
  • Metadata — Optional key-value JSON metadata to set on the document.

Output shape

a single JSON object representing the update response, typically containing a success indication

The output JSON object always returns at least a 'success' field. If the update is successful, 'success' is true; otherwise, error details are returned. The response corresponds to the API response from DocRouter.ai's document update endpoint.

Examples

Example 1: Update a document by changing its name and adding tags and metadata

Set Document ID to the target document, provide a New Document Name (if changing), specify Tag IDs as comma-separated strings, and add Metadata as JSON object. The node updates the document accordingly and returns success status.

Links

Discussion