Blog posts

Create a blog post

Changed on

Creates a blog post. New posts default to status: "draft"; publish explicitly via POST /v1/blog/posts/{id}/publish. The html body is sanitized server-side.

post/blog/posts

Request

  • Base URL: https://api.cavuno.com/v1
  • URL: https://api.cavuno.com/v1/blog/posts
  • Auth: HTTP bearer

Request body

slugstring
htmlstring
customExcerptstring
readingTimeMininteger
featuredboolean
authorIdsstring[]
tagIdsstring[]
coverMediaIdstring nullable
ogImageMediaIdstring nullable
featureImageAltstring
featureImageCaptionstring
seoTitlestring
seoDescriptionstring
canonicalUrlstring uri
publishedAtstring date-time
titlestring required
status'draft' | 'scheduled' | 'published'

Response

Successful response.

idstring required

Unique identifier for the object. Use this value as the {id} path parameter for the blog-post endpoints (e.g. GET /v1/blog/posts/{id}).

object'blog_post' required
titlestring required
slugstring required
statusstring required
visibilitystring required
typestring required
featuredboolean required
authorIdsstring[] required
tagIdsstring[] required
coverUrlstring nullable required
ogImageUrlstring nullable required
featureImageAltstring nullable required
featureImageCaptionstring nullable required
customExcerptstring nullable required
readingTimeMinnumber nullable required
seoTitlestring nullable required
seoDescriptionstring nullable required
canonicalUrlstring nullable required
publishedAtstring nullable required
createdAtstring required
updatedAtstring nullable required
htmlstring nullable required

Changes