BlogCategories

Create blog category

Changed on

Creates a blog category. File posts under it by passing its id or slug as category on a blog post.

post/blog_categories

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API 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

object required
name, string required

Unique within the account. Plain text, no HTML.

slug, string

URL slug. Derived from the name when left out; a taken slug is refused.

description, string nullable

Response

Blog category created

BlogCategory required
id, string required
object, string required
name, string required
slug, string required
description, string nullable required
created_at, string date-time required
updated_at, string date-time required
blog_posts_count, integer required

Changes