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, with at least one visible character.

Maximum string length: 255
slug
string
required

Unique among the store's categories.

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

An https URL.

Maximum string length: 2048
parent_id
string<uuid> | null

A category of the store to put this one under; null for a top-level category. Not the category itself, nor one of its subcategories.

position
integer
default:0
Required range: -1000000000 <= x <= 1000000000
hidden
boolean
default:false
show_in_header
boolean
default:false

Response

The category created. Location is its path.

category
object
required