Skip to main content

POST /api/collections/

Create a new collection.

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

Creates a new collection for organizing bookmarks, supporting both manual and smart collection types.

Endpoint​

POST /api/collections/

Request Body​

FieldTypeDescription
namestringThe display name of the collection to be created.
typestringThe classification of the collection, such as 'manual' for user-curated lists or 'smart' for automated filtering.
filter_rulestringThe logic or criteria used to automatically populate bookmarks if the collection type is set to 'smart'.

Response​

StatusDescription
201The collection was successfully created. Returns object.
400The request was invalid, typically due to missing required fields or validation errors in the service layer. Returns object.