Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

An access token from the OAuth flow (eo_at_...). It lasts one hour; refresh it with the refresh token. See Authentication.

Headers

Idempotency-Key
string

A unique key (up to 255 printable ASCII characters). The same key from your app within 24 hours answers the first result again, with Idempotent-Replayed: true, instead of creating twice.

Maximum string length: 255

Body

application/json
name
string
required

One line, trimmed, no invisible characters and no <.

Required string length: 1 - 255
slug
string

Letters a-z and A-Z, digits and dashes. Unique among the store's article categories (409 slug_taken).

Maximum string length: 255
Pattern: ^[a-zA-Z0-9-]+$
description
string

Plain text, trimmed. Line breaks and tabs are kept; < and invisible characters are refused. May be empty.

Maximum string length: 1000

Response

The category created. Location is its path.

article_category
object
required