The Category Object

Updated 9 months ago ​by Jake Peters

Categories returned by the API take this format:

{
    // Dates
    "created_at": ISODate("2016-06-26T15:30:38.731Z"),
    "updated_at": ISODate("2016-06-26T15:40:28.926Z"),
    // Identifiers
    "account_id": "test_account_id",
    "category_id": "test_category_id"
    // Mutable Properties
    "title": "Authentication",
    "description": "",
    // Calculated Properties
    "slug": "authentication"
}

There's far fewer mutable properties on a category than an article.

Property
created_at
Date
When category was first created.
updated_at
Date
When category was last updated (through the dashboard or the API).
account_id
String
The ID of the account this category belongs to.
category_id
String
A unique identifier for this category
title
String
The title of the category
body
String
A string describing the category. This is surpressed on some themes.
slug
String
The URL slug this slug appears at (e.g. /category/:category_id-:slug)

How did we do?