Skip to main content

Create category

Create category

Request Body REQUIRED

The category to create.

ParentCategoryId int32

The ID of the parent category. Set to 0 for a root-level category.

Names object[]

The localizable names of the category.

LanguageCode string
Content string

The localized content.

Descriptions object[]

The localized descriptions of the category.

LanguageCode string
Content string

The localized content.

Hidden boolean

Indicates if the category should be hidden from menus, filters etc.

Active boolean

True if the category is active for use.

Responses
200

The created category.

Schema OPTIONAL
Resource object OPTIONAL

An existing category.

CategoryId int32 OPTIONAL

The id of the category.

ParentCategoryId int32 OPTIONAL

The id of the parent category. If the category is at the root level, this field will be 0.

Names object[] OPTIONAL

The localizable names of the category.

LanguageCode string OPTIONAL
Content string OPTIONAL

The localized content.

Descriptions object[] OPTIONAL

The localized descriptions of the category.

LanguageCode string OPTIONAL
Content string OPTIONAL

The localized content.

GoogleCategoryPath string OPTIONAL

The Google Taxonomy category path for the category, if any.

Hidden boolean OPTIONAL

Indicates if the category should be hidden from menus, filters etc.

Active boolean OPTIONAL

True if the category is active for use.

Message string OPTIONAL

A status message for the action taken.

Details string[] OPTIONAL

Any validation messages for the data on the current action.

400

Bad request.

Schema OPTIONAL
Message string OPTIONAL

A status message for the action taken.

Details string[] OPTIONAL

Any validation messages for the data on the current action.