read_content to read, write_content to change (it includes read_content).
The article category
A category has no content and goes through no AI content check.
Articles and their categories
An article names its categories in itscategory_ids; a category does not list its articles. To find them, list articles with filter=category_id||$eq||<id>. To put an article in a category, send the article’s whole category_ids with Update an article.
Slugs
The slug is the category’s name in its blog URL: lettersa-z and A-Z, digits and dashes, up to 255 characters.
- Create a category without
slugand one is made from the name: its English letters and digits, in lower case, with dashes between words (Buying guides→buying-guides). A name with none of them, an Arabic one for example, getscategory. When the slug is taken, a random suffix is added (buying-guides-3fa9c1). - A
slugyou send must not be another article category’s:409 slug_taken. - Changing the name later does not change the slug. Send
slugto change it.
Deleting
Delete an article category deletes it for good, as the merchant’s dashboard does. Its articles stay: the category only leaves theircategory_ids. There is no undo.