Create a new global resource in the workspace.
Modes:
text: Create from plain text content (sync - returns when indexed)file: Create from base64 encoded file (sync - returns when indexed)url: Create from URL (async - returns immediately with status: “pending”)drive: Create from Google Drive file ID (async - returns immediately with status: “pending”)Note: For drive mode, the API key must be created by a user with Google Drive connected.
Async resources: For url and drive modes, poll /resource/status or /resource/get?checkStorageTaskStatus=true to check processing status.
Create a text resource
text The text content of the resource
1"This is the content of my landing page..."
Display name for the resource
"Product Landing Page"
Optional metadata to attach to the resource
{ "customField": "value" }