Create Item Category Property

Beta
POST/v1/catalog/item-categories/{id}/properties

Idempotent with Idempotency-Key header. Learn more

Creates a property and attaches it to an item category, returning the new property.

The property is one of your account's properties like any other, starting with no attributes, and the category carries it from the moment it exists. Both happen in one request that needs only permission to update the category. A name already used by one of your account's properties returns a conflict error naming name.

Permission requiredValues:item_categories:update
The role behind your API key or agent must grant this permission.
idstring

Item category ID.

include[]optional arrayenumValues:attributes

Sub-objects to expand in the response. When omitted, sub-objects are returned as null.

namestring

Display name of the new property, such as Color or Size.

Must be unique within your account. To attach a property that already exists, use the add item category property endpoint.

idstring

Property ID.

objectstringenumValues:property

Resource type identifier.

namestring

Display name of the property, such as Color or Size.

Unique within the account.

attributeslistExpandablenullable

The selectable values defined under this property.

Listed in the order the attributes are arranged within the property, first to last.

objectstringenumValues:list

Resource type identifier.

page_infoobject

Pagination metadata.

next_page_urlstringnullable

Relative URL that fetches the next page of results.

previous_page_urlstringnullable

Relative URL that fetches the previous page of results.

has_next_pageboolean

Whether more results exist after this page.

has_prev_pageboolean

Whether results exist before this page.

dataarray of attribute

Resources in this page.

idstring

Attribute ID.

objectstringenumValues:attribute

Resource type identifier.

valuestring

The selectable value this attribute represents, such as Red for a Color property or Large for a Size property.

colorstringenumValues:bluebrowndefault

Swatch color used to display this attribute in the UI.

The named colors are arbitrary display choices; default is a neutral fallback used when no specific swatch applies.

sort_orderinteger

Position of this attribute relative to its siblings within the property, starting at 1.

Positions are kept contiguous: creating, reordering, or deleting an attribute automatically shifts its siblings.

propertypropertynullable

The property this attribute belongs to.

Populated only when the attribute is returned under an item's or a volume discount's attributes list.

Always returned as null in this endpoint.
created_atstring (date-time)

Creation timestamp.

updated_atstring (date-time)

Last update timestamp.

created_atstring (date-time)

Creation timestamp.

updated_atstring (date-time)

Last update timestamp.

Responses

201

Successful response for Create Item Category Property