Skip to content

Commit

Permalink
Help Center: extend support interaction API (#40131)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcangelini authored Nov 11, 2024
1 parent 1a30464 commit 3de8166
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Fixing a small issue in an endpoint that is not yet used


Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3de8166

Please sign in to comment.