/** * Update a conversation. * * @param \HelpScout\model\Conversation $conversation The conversation payload to PUT * @param bool $reload Return the updated conversation if true * * @link http://developer.helpscout.net/conversations/update/ * * @todo Write a way to handle the return payload if reload = true * May require a method of its own that's run on the doPost, doPut, etc. methods */ public function updateConversation(model\Conversation $conversation, $reload = false) { $reload_param = $reload ? '?reload=true' : ''; $this->doPut('conversations/' . $conversation->getId() . '.json', $conversation->toJSON(), 200); }