Admin APIBlogs
Create blog
POST{handle}.blutui.com/admin/api/blogs
Create a blog in a project.
Body parameters
namestringrequired
The name of the blog.
uristringrequired
The URL used to view all posts that belong to this blog.
slugstring
The unique slug of the blog.
layoutstring
The layout used to display all blog posts.
post_layoutstring
The layout used to display a single post in this blog.
Response
import Blutui from 'blutui'
const blutui = new Blutui('ey....')
blutui.project('one').admin.blogs.create({
name: 'Blog',
uri: '/blog',
}){
"id": "99e2addd-e8d2-45c3-8184-fbcae8a6cf29",
"object": "blog",
"name": "Blog",
"slug": "blogs",
"uri": "/blogs",
"layout": "blog/layout.canvas",
"post_layout": "blog/post-layout.canvas",
"created_at": "2023-08-14T16:49:46+12:00",
"updated_at": "2023-08-14T16:49:46+12:00"
}idstring
The unique identifier for this blog.
objectstring
This will always contain blog for this endpoint.
namestring
The name of this blog.
slugstring
The unique slug for this blog.
uristring
The URL used to view all posts that belong to this blog.
layoutstring
The layout used to display all blog posts.
post_layoutstring
The layout used to display a single post in this blog.
created_atstring
The date and time when the blog was created.
updated_atstring
The date and time when the blog was updated.
Last updated on