wcc_doc_write
Upload a new document or file revision, or update document metadata without re-uploading the binary in WebCenter Content.
Instructions
Write to a document in WebCenter Content. Two modes:
new-revision— upload a new file revision. RequiresfilePath+ adDocNameref.metadata-only— change metadata without re-uploading the binary. Accepts either ref shape.
Metadata is supplied as a string→string map; only the supplied keys are touched. Existing fields not listed remain unchanged.
The filePath is validated against the server's PathPolicy in stdio / Electron mode. In hosted (SaaS) mode this tool is disabled — filesystem uploads are not available; the caller would need a different ingest path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| dID | Yes | Internal revision id. The tool resolves it via a follow-up metadata read; it may still be empty immediately after `new-document` if the document is in conversion — resolve later via `wcc_doc_get`. | |
| mode | Yes | ||
| dDocName | Yes | ||
| dRevisionID | Yes | Revision identifier. Same resolution caveat as `dID` for a freshly-created document. |