Actually, you could probably simplify this example to:

api.servers.get('some_id').group='some_group_id'