diff --git a/src/Resources/Contact.php b/src/Resources/Contact.php index f2785a7..c12a2e2 100644 --- a/src/Resources/Contact.php +++ b/src/Resources/Contact.php @@ -81,10 +81,10 @@ public function fields(array $query = null) * @throws \Freshdesk\Exceptions\UnsupportedAcceptHeaderException * @throws \Freshdesk\Exceptions\ValidationException */ - public function makeAgent($id, array $query = null) + public function makeAgent($id, array $query = []) { $end = $id . '/make_agent'; - return $this->api()->request('GET', $this->endpoint($end), null, $query); + return $this->api()->request('PUT', $this->endpoint($end), $query); } }