public function update($id, $scope) { return $this->apiClient->patch()->addPath('client-grants', $id)->withHeader(new ContentType('application/json'))->withBody(json_encode(["scope" => $scope]))->call(); }