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

update() public method

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