Developers

Categories

Markdown

Create a category

Creates a category. The name is up to 60 characters.

POST/stores/{storeId}/v1/categories

Headers

Idempotency-Keystringrequired

Request body

namestringrequired
imagestring | null
visibleboolean
sort_orderinteger

Response

dataobjectrequired
idinteger
namestring
imagestring | null
sort_orderinteger
visibleboolean
resource_versioninteger
executionobject
Who executed the request: the app, version, installation and store. Field names here are camelCase.
appIdstring (uuid)
versionIdstring (uuid)
installationIdstring (uuid)
storeIdstring (uuid)
requestIdstring (uuid)
generationinteger
routeEpochinteger
appAuthEpochinteger
grantRevisioninteger
metaobjectrequired
request_idstring (uuid)
The request ID; include it in any support request.

Errors

HTTPCodeMeaning
400IDEMPOTENCY_KEY_REQUIREDNo Idempotency-Key header.
409RESOURCE_CONFLICTConflicts with an existing category.

Shared codes are listed in Errors.

    ↑↓ moveEnter openEsc close