Blog posts

Toggle a blog post's featured flag

Changed on

Flips the post's featured flag and returns the updated post. Takes no request body.

post/blog/posts/{id}/toggle-featured

Request

  • Base URL: https://api.cavuno.com/v1
  • URL: https://api.cavuno.com/v1/blog/posts/{id}/toggle-featured
  • Auth: HTTP bearer

Path parameters

idstring required

The post's opaque object id: the id field returned by the blog-post endpoints (e.g. b3p8m2k7d9q4x0r5t1v6w8y2z7a4c0n3). This is NOT the slug or title; passing a slug like my-first-post returns 404. To look up a post by title or slug, use GET /v1/blog/posts or POST /v1/blog/posts/search and read the returned id.

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