Body parameters
The title for the blog post.
The unique slug for this blog post.
The HTML content of the blog post.
The author of the blog post.
The ID of the blog this post belongs to.
The date and time when the blog post will be published.
A short description of the blog post.
The URL of the featured image.
Response
The unique identifier for this blog post.
This will always contain post
for this endpoint.
The title for the blog post.
A short description of the blog post.
The HTML content of the blog post.
The unique slug for this blog post.
The author of the blog post.
The URL of the featured image.
The ID of the blog this post belongs to.
The date and time when the blog post will be published.
The date and time when the blog post was created.
The date and time when the blog post was updated.
import Blutui from 'blutui'
const blutui = new Blutui('ey....')
blutui.project('one').admin.posts.create({
title: 'A very awesome post',
slug: '/a-very-awesome-post',
content: '<p>My post content</p>',
author: 'John Doe',
blog: '99e2addd-e8d2-45c3-8184-fbcae8a6cf29',
publish_date: '2024/09/25 11:00:00',
})
{
"id": "9a53098c-29df-4347-bfdb-49be0850db29",
"object": "post",
"title": "A very awesome post",
"description": "A short description about my awesome post.",
"content": "<p>My post content</p>",
"slug": "/a-very-awesome-post",
"author": "John Doe",
"feature_image": "https://cdn.blutui.com/uploads/one/image.jpg",
"blog": "99e2addd-e8d2-45c3-8184-fbcae8a6cf29",
"publish_date": "2024-09-25T11:00:00+12:00",
"created_at": "2024-08-14T16:49:46+12:00",
"updated_at": "2024-08-14T16:49:46+12:00"
}