[COS Blog Post API] Scheduled or published blog posts must have a url

cos

#1

Hi there,
Trying to publish a blog post through the API

@OAuthRequest(POST, https://api.hubapi.com/content/api/v2/blog-posts/%:my_blog_post_id%/publish-action)
{"action":"schedule-publish"}

and get the following error:

{
	"correlationId": "16a9e207-e784-4a78-8f79-af15879a8edc",
	"errorTokens": {
		"missingValue": ["a url"]
	},
	"errorType": "MISSING_NECESSARY_PUBLISH_VALUE",
	"message": "Scheduled or published blog posts must have a url",
	"requestId": "b268126fa7d7952909e1f0e805a6d55a",
	"status": "error"
}

Regarding the documentation (http://developers.hubspot.com/docs/methods/blogv2/post_blog_posts_blog_post_id_publish_action) we don’t need the URL of the blog post, only the blog_post_id.
Any update?


#2

Simply, when creating a post, I now put the “slug” field to define the url of the post.