Articles on: API

Create blog post

POST
https://app.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



NameTypeDescriptionRequired
slugstringPath of the new blog post. Must be unique across the blog.Yes
htmlstringHTML content of the new post.Yes
headlinestringMeta title.Yes
metaDescriptionstringMeta description.Yes
metaKeywordsstringMeta keywords. Aren't used anywhere at this moment.Yes
thumbnailUrlstringSource URL of the post's thumbnail image.Yes
createdAtstringPublication date. Must be in this format: YYYY-MM-DDTHH:MM:SS.Yes
publishedbooleanWhether or not the new post is publicly available.Yes
directorystringSpecify the subdirectory for the new blog post. Goes to the default directory if not specified. Example: "nocode".No
is_deletedbooleanMark the post as deleted.No


Response



201 Created

{
    "success": true
}

Updated on: 06/02/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!