support the flags argument for /kv PUT