The UPDATE_DOCUMENT action is used to update a document within the Nuxeo repository.
Use this action to replace document content, update metadata, or perform both operations in a single request. The action locates an existing document in the Nuxeo repository and updates its content, metadata, or both. It is useful when document information changes over time but the existing document record should be preserved. The updated document remains available for searches, downloads, metadata operations, and workflow processing.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| content | Content | Required | An existing file in the Hyland repository that will be copied into the document in the Nuxeo repository. |
| documentId | String | Optional | The identifier of a document in the Nuxeo repository. |
| documentMetadata | JSON | Optional | Metadata that will be applied to the document during the update operation. |
| documentPath | String | Optional | The path of a document in the Nuxeo repository. |
Note: Either documentId or
documentPath must be provided. If both values are supplied,
both are accepted by the connector.
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| outputDocumentId | String | Optional | The identifier of the document that was updated in the Nuxeo repository. |