diff --git a/includes/api/class-sp-rest-api.php b/includes/api/class-sp-rest-api.php index 34f66263..c8beeeb4 100644 --- a/includes/api/class-sp-rest-api.php +++ b/includes/api/class-sp-rest-api.php @@ -239,7 +239,7 @@ class SP_REST_API { 'update_callback' => 'SP_REST_API::update_post_meta_arrays_multi', 'schema' => array( 'description' => __( 'Box Score', 'sportspress' ), - 'type' => 'array', + 'type' => 'object', 'context' => array( 'view', 'edit' ), 'arg_options' => array( 'sanitize_callback' => 'rest_sanitize_request_arg', @@ -445,7 +445,7 @@ class SP_REST_API { 'update_callback' => 'SP_REST_API::update_post_meta_arrays_multi', 'schema' => array( 'description' => __( 'Statistics', 'sportspress' ), - 'type' => 'array', + 'type' => 'object', 'context' => array( 'view', 'edit' ), 'arg_options' => array( 'sanitize_callback' => 'rest_sanitize_request_arg',