diff --git a/www/class/centreon-clapi/centreonContactGroup.class.php b/www/class/centreon-clapi/centreonContactGroup.class.php
index d8747fd85e608a4f5a3710664943fad6a398633a..4e51f384299724b7ee9ca2ae3ee1dd2ce4367055 100644
--- a/www/class/centreon-clapi/centreonContactGroup.class.php
+++ b/www/class/centreon-clapi/centreonContactGroup.class.php
@@ -216,8 +216,16 @@ class CentreonContactGroup extends CentreonObject
      *
      * @return void
      */
-    public function export($filters = null)
+    public function export($filter_id = null, $filter_name = null)
     {
+        $filters = array();
+        if (!is_null($filter_id) && $filter_id !== 0) {
+            $filters['cg_id'] = $filter_id;
+        }
+        if (!is_null($filter_name)) {
+            $filters['cg_name'] = $filter_name;
+        }
+
         parent::export($filters);
         $relObj = new \Centreon_Object_Relation_Contact_Group_Contact($this->dependencyInjector);
         $contactObj = new \Centreon_Object_Contact($this->dependencyInjector);
diff --git a/www/class/centreon-clapi/centreonHostGroup.class.php b/www/class/centreon-clapi/centreonHostGroup.class.php
index c934839ce6c50a3edd10f5789647e66a01ed1a70..67d74e62c8a7838531aed08ae5e6f5df0fb0ac0f 100644
--- a/www/class/centreon-clapi/centreonHostGroup.class.php
+++ b/www/class/centreon-clapi/centreonHostGroup.class.php
@@ -278,10 +278,17 @@ class CentreonHostGroup extends CentreonObject
      *
      * @return void
      */
-    public function export($filters = null)
+    public function export($filter_id = null, $filter_name = null)
     {
-        parent::export($filters);
+        $filters = array();
+        if (!is_null($filter_id) && $filter_id !== 0) {
+            $filters['hg_id'] = $filter_id;
+        }
+        if (!is_null($filter_name)) {
+            $filters['hg_name'] = $filter_name;
+        }
 
+        parent::export($filters);
         $relObj = new \Centreon_Object_Relation_Host_Group_Host($this->dependencyInjector);
         $hostObj = new \Centreon_Object_Host($this->dependencyInjector);