Skip to main content
PATCH
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.

Path Parameters

id
string<uuid>
required

The category's ID.

Body

application/json

Every field is optional; only the fields sent change.

name
string

One line, trimmed, with at least one visible character.

Maximum string length: 255
slug
string

Unique among the store's categories.

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

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, without subcategories.

category
object
required