Skip to content

Create a new bookmark

post/api/bookmark
Create a bookmark for the logged-in user.

Request

Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.Example: Authorization: Bearer <token>

Body application/json

collection_idnumber
required
ID of the collection.
namestring
required
Name of the bookmark.
urlstring
required
Url of the bookmark.
descriptionstring
Description of the bookmark.
iconstring
Icon of the bookmark.
tagsstring[]
Tags of the bookmark.

Response

Schema: application/json
codestring
dataundefined
messagestring

Body application/json

json
// SUCCESS

{
  "code": "0",
  "message": "Ok"
}
// SUCCESS

{
  "code": "0",
  "message": "Ok"
}
json
// BOOKMARK_ALREADY_EXISTS

{
  "code": "202",
  "message": "Bookmark already exists"
}
// BOOKMARK_ALREADY_EXISTS

{
  "code": "202",
  "message": "Bookmark already exists"
}
json
// BOOKMARK_CREATE_FAILED

{
  "code": "203",
  "message": "Bookmark create failed"
}
// BOOKMARK_CREATE_FAILED

{
  "code": "203",
  "message": "Bookmark create failed"
}