Blog Categories

Create a blog category

Changed on
post/post_categories

Request

  • Base URL
    https://open.shopline.io/v1
  • URL
    https://open.shopline.io/v1/post_categories
  • Auth
    HTTP bearer

Request body

Response

The created blog category.

idstring

Blog category ID, usable as input to the other blog category endpoints and as the category_id filter when listing posts.

posts_countinteger

Number of blog posts currently assigned to this category.

status'active' | 'removed'

Lifecycle state of the category. active is in use; removed has been deleted.

seo_keywordsstring

Comma-separated keywords rendered in the category page's SEO keywords meta tag.

created_atstring date-time

ISO-8601 timestamp of when the category was created, in UTC.

updated_atstring date-time

ISO-8601 timestamp of the last update to the category, in UTC.

name_translationsobject

Category name per locale, keyed by locale code.

seo_title_translationsobject

Category page SEO title per locale, keyed by locale code.

seo_description_translationsobject

Category page SEO description per locale, keyed by locale code.

banner_media_translationsobject

Category banner media per locale, keyed by locale code; a locale is null when it has no banner.

linkobject nullable

SEO url settings of the category, including its url_link slug; null when none is set.

Changes