| '''Summary'''
|Replaces a resource, specified by {{Code|$path}}, in the database {{Code|$db}} with the contents of {{Code|$input}}, or adds it as a new resource:
* See [[#db:add|db:add]] for more details on the arguments (for historical reasons, the order of the 2nd and 3rd argument differs!).
|-
| '''Errors'''