]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/API2/User.pm
api/users: mark tokens and groups as optional in return schema
[pve-access-control.git] / PVE / API2 / User.pm
index 37bc6c078dd9030f344a7bec75f8d9a68557d377..311f913853d9a79747b661131597006512f12350 100644 (file)
@@ -294,12 +294,14 @@ __PACKAGE__->register_method ({
            keys => get_standard_option('user-keys'),
            groups => {
                type => 'array',
+               optional => 1,
                items => {
                    type => 'string',
                    format => 'pve-groupid',
                },
            },
            tokens => {
+               optional => 1,
                type => 'object',
            },
        },