Skip to main content
POST
Create Product Type

Headers

authorization
string | null
X-Organization-ID
string | null

Cookies

stytch_session
string | null

Body

application/json

Request model for creating a ProductType.

key
string
required

Unique identifier (lowercase with underscores)

name
string
required

Human-readable name

category_key
string | null

Key into product_type_categories (e.g. 'apparel'). Drives 3-tier prompt resolution.

description
Description · object[] | null

Localized descriptions

isActive
boolean
default:true

Active status

properties
PropertyReferenceDict · object[]

Property references

Response

Successful Response

Response model for a single ProductType.

id
string
required

MongoDB ObjectId as string

key
string
required

Unique identifier

name
string
required

Human-readable name

category_key
string | null

Key into product_type_categories — links this ProductType to a Category for 3-tier prompt resolution.

createdAt
string | null

Creation timestamp

createdBy
string | null

User who created this

description
Description · object[] | null

Localized descriptions

isActive
boolean
default:true

Active status

is_system
boolean
default:false

System-managed ProductType

lastModifiedAt
string | null

Last modification timestamp

lastModifiedBy
string | null

User who last modified this

propertyCount
integer
default:0

Number of properties

propertyKeys
string[]

List of property keys