Create blog post
POST
https://api.unicornplatform.com/api/v1/blog_posts/seobot_hook/{seobot_api_key}/{seobot_post_id}
Adds a blog post to an existing blog. Posts created this way won't appear in the Unicorn Platform editor.
{seobot_api_key} can be acquired in the Blog settings:
{seobot_post_id} is a string identifier that is unique across all Unicorn Platform blog posts.
201 Created
https://api.unicornplatform.com/api/v1/blog_posts/seobot_hook/{seobot_api_key}/{seobot_post_id}
Adds a blog post to an existing blog. Posts created this way won't appear in the Unicorn Platform editor.
{seobot_api_key} can be acquired in the Blog settings:
{seobot_post_id} is a string identifier that is unique across all Unicorn Platform blog posts.
Body
Name | Type | Description | Required |
---|---|---|---|
slug | string | Path of the new blog post. Must be unique across the blog. | Yes |
html | string | HTML content of the new post. | Yes |
headline | string | Meta title. | Yes |
metaDescription | string | Meta description. | Yes |
metaKeywords | string | Meta keywords. Aren't used anywhere at this moment. | Yes |
thumbnailUrl | string | Source URL of the post's thumbnail image. | Yes |
createdAt | string | Publication date. Must be in this format: YYYY-MM-DDTHH:MM:SS. | Yes |
published | boolean | Whether or not the new post is publicly available. | Yes |
directory | string | Specify the subdirectory for the new blog post. Goes to the default directory if not specified. Example: "nocode". | No |
is_deleted | boolean | Mark the post as deleted. | No |
Response
201 Created
{
"success": true
}
Updated on: 27/09/2024
Thank you!