Patch a database entry
patch_database_entryApply shallow field patches to one RPG Maker MZ database entry or System.json keys; nested objects and arrays must be passed complete to avoid dropping existing keys.
Instructions
Apply a shallow field patch to one entry of a database table (or to System.json's top-level keys). Nested objects and arrays must be passed complete, because MZ has no partial-update semantics on them — a nested object that arrives without a key the entry already had loses that key, and the reply names the keys it lost so the caller can read the entry first. System's switches and variables are the exception: pass either an array of names or an object keyed by id, and the array the engine needs is what gets written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Entry id; ignored for System | |
| patch | Yes | ||
| table | Yes |