HighLevel API HTTP Module to Post Blog

Hi, I am hoping someone can help me. I am trying to use the HighLevel (Leadconnector) API to post a blog into Highevel. Here is the link to the API Docs: Create Blog Post | Integrations API

It keeps failing on Category and Tags, stating that they would be arrays. I have tried using emptyarray but it still doesn’t work

I am using HTTP Module

This is the error I keep getting

This is my Scenario

The first HTTP Module collects the Categories from my HighLevel Blog account

The second HTTP Module posts the blog article

Any help on this would be very much appreciated, I have been pulling my hair out

Arrays are tricky in make.com.
I use the split function. This is always going to be an array.
It could look like this:
image

{{split(“SEO GMB,SEO”; “,”)}}

Thank you, however that is not giving me an output array as the Variable Value. The Variable value must be an array.

Welcome to the Make community!

According to the official GHL API documentation for “Create Blog Post”, the request format has to be “application/json”, NOT “application/x-www-form-urlencoded”.

Simply change your “Body type” field to “Raw”, and Content type to “JSON (application/json)”, and use the provided JSON example in the documentation.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Thank you and you are absolutely correct. I made that change yesterday and it worked. However now getting another error:

This is coming from the “rawHTML” item:

I copied the raw html into ChatGPT and had it analysed, apparently there was a double space where there should not have been. So how do I get make to review the code for errors and fix them?

No problem, glad I could help!

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

2 Likes