Use REST API instead of CLI due to bug