diff --git a/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-installer-controller.php b/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-installer-controller.php index c2169e4fe8c..b07fb7f1687 100644 --- a/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-installer-controller.php +++ b/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-installer-controller.php @@ -51,6 +51,12 @@ class WC_REST_WCCOM_Site_Installer_Controller extends WC_REST_Controller { 'methods' => WP_REST_Server::CREATABLE, 'callback' => array( $this, 'install' ), 'permission_callback' => array( $this, 'check_permission' ), + 'args' => array( + 'products' => array( + 'required' => true, + 'type' => 'array', + ), + ), ), array( 'methods' => WP_REST_Server::DELETABLE,