Skip to main content
onePassword.replaceDocument replaces the binary document on a Document-category item. This action requires a service-account connection.

Example

automations/onepassword-replace-document.automation.ts

Inputs

Provide the complete decrypted Document item and replacement name and Uint8Array content. Every input accepts a compatible signal. Account-backed actions accept an optional second argument { account } to select a named binding.

Output

Returns the updated decrypted item. The output is sensitive.