Create item type

Creates a new item type for the collection. Collections may have zero or many explicit item types; there is no minimum count.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required
length between 36 and 36

Unique identifier for the workspace

string
required
length ≤ 128

Name of the collection

Body Params

Item type definition to create. name and item_class are required.

Request body for creating a single item type. Requires name and item_class.

string
required
length between 1 and 16
^[a-z][a-z0-9_]{0,15}$

Immutable public identifier used in External item-type-scoped API paths. Unique within a collection. Must start with a lowercase letter and contain only lowercase letters, digits and underscores, at most 16 characters (^[a-z][a-z0-9_]{0,15}$). Names starting with 'br_' are reserved.

string
enum
required

Classification of the item type. Required on create. Immutable after creation. Use product for catalog product types; use custom for user-defined types.

Allowed:
string
length between 1 and 128

Human-readable name for display in UI. Optional; when omitted defaults to name.

length between 0 and 1024

Optional detailed description of the collection's purpose and contents

relationships
array of strings, unique
length ≤ 1
Defaults to []

Parent-child relationships for product item types. Only variant is supported. Custom item types always return an empty array and cannot set relationships on create.

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json

© Bloomreach, Inc. All rights reserved.