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
| Field | Type | Description |
|---|---|---|
| name | string | The unique name of the collection to be created. |
| type | string | The collection type, either "manual" for static membership or "smart" for rule-based membership. |
| filter_rule | string | The logic or criteria used to automatically populate a smart collection. |
Response
| Status | Description |
|---|---|
| 201 | Collection successfully created. Returns object. |
| 400 | Invalid request data or validation error. Returns object. |