function restoreVersion($page_id, $version_id) { $endpoint = "https://api.hubapi.com/content/api/v2/pages/{$page_id}/versions/restore"; $options['json'] = compact('version_id'); return $this->client->request('post', $endpoint, $options); }