Problem with GoHighLevel custom API call

Hi, I’m having troubles with the new v2 API. I’m trying to use the “Make an API Call” module but getting a 404 error. Does anyone have experience sending API requests with the new GoHighLevel v2 API?

When updating a contact in GoHighLevel, you need to call the Update a Contact module, then you can add tags using the Make an API Call (adding tags in my case). It is my understanding that we use the URL:
https://rest.gohighlevel.com/v2/contacts/{contact_id}/tags

The scenario already has GoHighLevel modules working (e.g. Update a Contact).

I’ve tried using Postman for the add tag API call and get the same error, so I must be missing something.

I’m getting a 404 Error :point_down:

** This makes me think the problem is with the API header. I have several other GoHighLevel modules that do work but Make.com created those.

This shows the OAuth connection :point_down:

1 Like

With the 404 Not Found error, the problem seems to be pointing to the URL but I’m unsure. If you’ve tried using the new v2 with the “API Call” module, I’d like to know… whether it works or not.

Thanks.

1 Like

Hi @Tom_Hudock

Are you facing any challenge to use native module to update contacts??

Regards,
Msquare Automation - Platinum Partner of Make
@Msquare_Automation

1 Like

Hi @Msquare_Automation

I can use the other GoHighLevel modules within Make, such as, Update a Contact or Create a Contact. When using GoHighLevel API, I need to use Update a Contact, then Update Tag. The module that isn’t working is the custom API for GoHighLevel - Make an API Call.

And this is module I need to use for adding a tag to an existing contact.

1 Like

@Tom_Hudock

Actual API for v2 to update contact is this one . The one you are using is for v1 that should have v1 instead of v2. That’s why it says the method not found. And for v2 the method is PUT.

APIs are used based on the documentation.

Also, why do you still need to do api call to update tags while update a contact module have the option to update the tags.

Regards,
Msquare Automation - Platinum Partner of Make
@Msquare_Automation

2 Likes

Thank you @Msquare_Automation . You are correct that I wasn’t using the v2 method for Add Tags.

Here’s the updated “Make an API Call” with the POST method for Add Tag:

The answer to your second question is that the Tag field in Update Contact will replace, not append to the list of tags. So if you want to add more tags to the contact, using Update Contact will replace all the tags with the ones you give it. While Add Tags API will append.

Thank you for noticing my mistake on the v2 vs v1! Appeciate you keen eye for detail!!

2 Likes

Thank you @Tom_Hudock

For tags removal problem in GHL, the way to do is “get a contact”, then mapping the tags from “get a contact” module to “update a contact” module by using add() function.

Many CRMs remove the tags like GHL, so the way to do is “get” method first.

Regards,
Msquare Automation - Platinum Partner of Make
@Msquare_Automation

3 Likes

Oh interesting. So the “get a contact” provides the tag array. And you’re suggesting to append new tags to that array (e.g. add(array; value1; value2; etc) ) and include the new array in the “update a contact” module?

This could reduce the number of modules in this scenario, thus reducing the usage count. I’ll look at this again because the scenario is rather large and complicated.

What a great idea! Thx!

1 Like