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, either 'manual' for static lists or 'smart' for dynamic 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.