Unable to Publish Blog Post


#1

I’ve been trying to publish blogs via the blog post API, but I keep receiving 400 (Bad Request) errors. I’m currently trying to post to the following url: https://api.hubapi.com/content/api/v2/blog-posts/[blog_post_id]/publish-action?hapikey=[api key]. I am posting the following json: {“action”:“schedule-publish”}

I have been able to create blog posts via the api and then retrieve them without issue. However, no matter what I try, I can’t seem to make the publish feature work. Any suggestions would be greatly appreciated. Thanks!


#2

I was able to resolve this issue on my own. My blog posts were missing meta descriptions. Once I populated that field on the initial blog post creation, I was able to publish via the api without issue.


#3

Thanks for the update with the solution.


#4

Did the error returned mention the missing description?