Skip to content

Commit

Permalink
Lead is using PATCH not PUT !
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-k authored Jul 12, 2022
1 parent b68bbe8 commit 2407937
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Resources/Leads.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ public function updateLabel($id, array $values = [])
*/
public function update($id, array $values = [])
{
$this->request->setResource('leads');
$values['json'] = true;

return $this->request->get('');
array_set($values, 'id', $id);

return $this->request->patch(':id', $values);
}

/**
Expand Down

0 comments on commit 2407937

Please sign in to comment.