Create a new collection

Creates a new item collection. Property presence selects the creation contract: omit both item_types and types to apply the legacy default; item_types preserves the legacy inline contract (non-empty arrays only); types is the canonical contract and supports types: [] for zero-type. item_types and types are mutually exclusive (HTTP 400).

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

Body Params

Collection create request. See item_types and types property descriptions for contract selection.

Provide name and optional display metadata. Use types for canonical creation. Use item_types only for the legacy inline contract.

string
required
length between 1 and 64

Unique identifier for portable references across environments

length between 0 and 1024

Optional detailed description of the collection's purpose and contents

length between 1 and 256

Human-readable name for the collection

item_types
length between 1 and 50
deprecated

Deprecated. Use types for new requests. Legacy inline item type contract. type: product creates a product-class item type. Any other name creates a custom-class item type. Omit with types omitted to apply legacy default. null applies the same legacy default. Empty array is invalid; use types: [] for a zero-type collection.

types
array of objects, unique
length between 0 and 50

Canonical inline item types for collection create when types is present. types: [] creates a zero-type collection. A nonempty list creates every requested item type atomically. Each name must be unique within the list. A duplicate name is rejected with HTTP 400 (type bloomreach/datahub/api/request-body-invalid) and field_errors.types set to 'Item types must be unique.' uniqueItems only rejects fully identical entries; the name check is enforced by the API.

CreateCollectionInlineTypes
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.