setDocumentMetadata

Type: Action step

Set the metadata of a document. Note that these new metadata will overwrite existing metadata.

Example:

Other

"set-document-metadata": {
  "label": "Set document metadata",
  "steps": [
    {
      "type": "action/setDocumentMetadata",
      "data": {
        "documentId": "{{documentId}}",
        "documentMetadata": {
            "changes": "bountiful"
        }
      }
    }
  ]
}

Imported operation data

  1. documentId

    Identifier of the document which we want to set the metadata.

  2. documentMetadata

    Metadata to associate to the document.