diff --git a/projects/packages/jetpack-mu-wpcom/changelog/help-center-fix-support-interactions-api b/projects/packages/jetpack-mu-wpcom/changelog/help-center-fix-support-interactions-api new file mode 100644 index 0000000000000..7d4c71bbe4fdd --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/help-center-fix-support-interactions-api @@ -0,0 +1,5 @@ +Significance: patch +Type: fixed +Comment: Fixing a small issue in an endpoint that is not yet used + + diff --git a/projects/packages/jetpack-mu-wpcom/src/features/help-center/class-wp-rest-help-center-support-interactions.php b/projects/packages/jetpack-mu-wpcom/src/features/help-center/class-wp-rest-help-center-support-interactions.php index 31c8df2031c13..b88e910253b5f 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/help-center/class-wp-rest-help-center-support-interactions.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/help-center/class-wp-rest-help-center-support-interactions.php @@ -227,7 +227,14 @@ public function update_support_interaction_status( \WP_REST_Request $request ) { $status = $request['status']; - $body = Client::wpcom_json_api_request_as_user( "/support-interactions/$support_interaction_id/status?status={$status}" ); + $body = Client::wpcom_json_api_request_as_user( + "/support-interactions/$support_interaction_id/status", + '2', + array( + 'method' => 'PUT', + 'body' => array( 'status' => $status ), + ) + ); if ( is_wp_error( $body ) ) { return $body;