Update Content Metadata

User Intent

"How do I update content metadata? Show me content updates."

Operation

SDK Method: updateContent() Use Case: Modify content properties


Code Example (TypeScript)

import { Graphlit } from 'graphlit-client';

const graphlit = new Graphlit();

// Update content
await graphlit.updateContent({
  id: 'content-id',
  name: "Updated Document Name",
  customMetadata: {
    category: "financial-reports",
    quarter: "Q4-2024",
    reviewed: true
  }
});

console.log('Content updated');

Updatable Fields

name: Display name customMetadata: App-specific JSON collections: Add/remove from collections state: Enable/disable/archive


Last updated

Was this helpful?