function updateSettings($app_id, $settings) { $endpoint = "https://api.hubapiqa.com/webhooks/v1/{$app_id}/settings"; $options['json'] = $settings; return $this->client->request('put', $endpoint, $options); }