PatchFile(filePath, patchData) Last updated: 05. Nov 2024
API only function
Updates/patches an existing file in Docly document according to specified schema. The patch is merged with existing data.
Parameters
Name | Type | Description |
---|---|---|
filePath | string | Absolute path to where you want to patch data. |
patchData | object | Data to patch into existing data. |
Returns
An object with references to the saved file with:
- timestamp
- guid
- filename
* Filename may be needed if autogenerated filenames are used.
Example
Code example (JS)
JS is normal JavaScript either running in the browser or on the Docly™ server.Demo not available