add support for resetting to autoprov to restapi client