Skip to main content

POST /api/bookmarks/

Create a new bookmark. Expects a JSON body with url (required) and title (required).

Create a new bookmark. This endpoint allows users to add a new bookmark by providing its URL and an optional title.

Endpoint

POST /api/bookmarks/

Request Body

FieldTypeDescription
urlstringThe URL of the bookmark to be created. This field is required.
titlestringThe title of the bookmark. This field is required.

Response

StatusDescription
201Bookmark created successfully. Returns application/json.
400Invalid input data provided, such as missing required fields or an invalid URL. Returns application/json.