SevenShores\Hubspot\Resources\Pages::update PHP Method

update() public method

Update a page.
public update ( integer $page_id, array $params ) : Response
$page_id integer The page id.
$params array The page fields to update.
return SevenShores\Hubspot\Http\Response
    function update($page_id, $params)
    {
        $endpoint = "https://api.hubapi.com/content/api/v2/pages/{$page_id}";
        $options['json'] = $params;
        return $this->client->request('put', $endpoint, $options);
    }