Non-interactive editing of settings like 'onehost update 0'

In the sunstone configuration, I have to edit onezone/onedatastore settings, which can be done using an interactive editor with ‘onezone update 0’.

How can I edit these settings non-interactively, so that I can use bash/Ansible to set up my config?

I found it:

onedatastore update <datastore_id> <template> -a

Here <template> is a file that only contains the values that must be changed.