Skip to main content

POST /

Create a new collection.

Expects JSON with ``name`` (required) and optional ``type`` (manual|smart)
and ``filter_rule``.

Create a new collection. Expects JSON with name (required) and optional type (manual|smart) and filter_rule.

Endpoint

POST /

Request Body

FieldTypeDescription
namestringThe unique name of the collection to be created.
typestringThe collection type, either "manual" for static membership or "smart" for rule-based membership.
filter_rulestringThe logic or criteria used to automatically populate a smart collection.

Response

StatusDescription
201Collection successfully created. Returns object.
400Invalid request data or validation error. Returns object.