Midclt call datastore.update account.bsdusers syntax TrueNAS

Hi,

database fields can be queried with
midclt call datastore.query account.bsdusers '[["bsdusr_username", "=", "damadmai"]]'
[{“id”: 87, “bsdusr_uid”: 1004, “bsdusr_username”: “damadmai”,…

How can a field be updated? Something like
midclt call datastore.update account.bsdusers'[["bsdusr_username", "=", "damadmai"]]' ...

Where to find documentation about datastore.update function?

It worked using the id and a dict of values like:
midclt call datastore.update account.bsdusers 87 '{"bsdusr_smbhash": "ABCDEF0123456789ABCDEF0123456789"}'

There is no documentation because it’s a private API that generally shouldn’t be touched.