Skip to content

Commit

Permalink
Merge pull request #326 from skeemer/fix-contact-tags
Browse files Browse the repository at this point in the history
Fix adding tags to a contact
  • Loading branch information
ROMzombie authored Apr 22, 2024
2 parents 95e35c3 + c49fa5f commit bce942b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Infusionsoft/Api/Rest/ContactService.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public function addTags($tagIds)
throw new InfusionsoftException('A maximum of 100 tag ids can be added at once');
}

$tags = new \stdClass;
$tags->tagIds = $tagIds;
$tags = [];
$tags['tagIds'] = $tagIds;

$response = $this->client->restfulRequest('post', $this->getFullUrl($this->id . '/tags'), $tags);

Expand Down

0 comments on commit bce942b

Please sign in to comment.