curl --request POST \
--url https://api.hubapi.com/content/api/v2/blog-posts/{blog_post_id}/publish-action \
--header 'Content-Type: application/json' \
--data '
{
"action": "schedule-publish"
}
'Either schedules or cancels publishing based on the POSTed JSON. Note that this endpoint must always be used to publish a blog post. Use the Create or Update endpoints to set the publish_date, but then use this endpoint to trigger the actual publish event.
curl --request POST \
--url https://api.hubapi.com/content/api/v2/blog-posts/{blog_post_id}/publish-action \
--header 'Content-Type: application/json' \
--data '
{
"action": "schedule-publish"
}
'Scope requirements
Unique identifier for a particular blog post
Action to perform: 'schedule-publish' sets up the content for publishing at the publish_date already set on the post, 'cancel-publish' cancels a previously scheduled blog post publish
schedule-publish, cancel-publish Publish action completed
Was this page helpful?