DocsWorkflowsComponentsDatadata:document:patch

data:document:patch

Applies syntax-aware replacements without rebuilding the document.

Options

NameTypeDescription
contentanyIs the unchanged string or byte slice used to create every locator.
content_base64stringCarries the exact source bytes produced by document selection.
replacementsanyCarry source-bound locators and their new decoded values.

Outputs

NameTypeDescription
body[]byte
contentstring
content_base64string
encodingEncoding

Example

name: Patch document values
actions:
  - name: patched
    component: data:document:patch
    vars:
      content_base64: "{{ var.document_base64 }}"
      replacements: "{{ var.replacements }}"

outputs:
  content_base64: "{{ patched.content_base64 }}"