Unable to add tag to contact via API

Hello, I’m posting to the contactTags endpoint to add a tag to a contact. I’ve fetched both the tag and the contact objects successfully and checked the Id fields. Whenever I post to the contactTags endpoint, I get a 404 response. I’m using this library: GitHub - testmonitor/activecampaign: This package provides a PHP SDK for the ActiveCampaign API (v3). which uses guzzle to make http requests. I looked at the addTagToContact method in the ManagesContactTags trait and it appears to have the correct endpoint and data format (contact and tag id’s). The Id’s are String data types. Any help would be greatly appreciated!

I’ve also tried the endpoint in Postman and still got a 404 response with a message that says “Tag not found”. However, I’m able to make a GET request in Postman to tags/:id and it returns the correct tag. I think the contactTags endpoint may be broken on their end.

It seems that the contactTags endpoint now need an extra parameter. I did pass the contact ID on the url and it works fine. The oficial documentation (found here) must be outdated.

In other words, call the API endpoint like this:
https://youraccountname.api-us1.com/api/3/contactTags/{ID}

Instead of this:
https://youraccountname.api-us1.com/api/3/contactTags

Where the {ID} is the id of the contact that you want to set the tag to.