JavaScript
import Morphik from 'morphik'; const client = new Morphik({ apiKey: 'My API Key', }); const document = await client.documents.updateMetadata('document_id'); console.log(document.app_id);
{ "content_type": "<string>", "external_id": "<string>", "filename": "<string>", "metadata": {}, "metadata_types": {}, "storage_info": {}, "storage_files": [ { "bucket": "<string>", "key": "<string>", "version": 1, "filename": "<string>", "content_type": "<string>", "timestamp": "2023-11-07T05:31:56Z" } ], "system_metadata": {}, "additional_metadata": {}, "chunk_ids": [ "<string>" ], "folder_name": "<string>", "end_user_id": "<string>", "app_id": "<string>" }
Update only a document’s metadata.
Request payload for metadata-only document updates.
Metadata fields to merge into the document.
Optional per-field type hints: 'string', 'number', 'decimal', 'datetime', 'date', 'boolean', 'array', 'object'. Enables typed comparisons.
Show child attributes
Successful Response
Represents a document stored in the database documents collection
Was this page helpful?