BlogPosts
Create blog post
Changed onCreates a new blog post.
post/blog_posts
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Headers
Idempotency-Key, string
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Request body
Blog Post Create Request required
title, string required
content, string
status, 'draft' | 'published' | 'scheduled' | 'archived'
slug, string
excerpt, string
published_at, string date-time nullable
scheduled_at, string date-time nullable
seo_attributes, object
category, string nullable
The id or slug of a blog category from listBlogCategories. null takes the post out of its category.
Response
Blog post created
Blog Post required
id, string required
object, string required
title, string required
slug, string required
content, string required
status, 'draft' | 'published' | 'scheduled' | 'archived' required
excerpt, string required
published_at, string date-time nullable required
scheduled_at, string date-time nullable required
created_at, string date-time required
updated_at, string date-time required
url, string required
category, string nullable required
seo, union
ID by default, full object when expanded
Changes
- warning
removed the request property
blog_category_id - warning
removed the request property
seo_attributes/id - info
added the new optional request property
category
1 more change in this revision
- warning