Skip to content

Delete a bookmark

delete/api/bookmark/:id
Delete 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>

Router Params

idnumber
required
ID 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_NOT_FOUND

{
  "code": "201",
  "message": "Bookmark not found"
}
// BOOKMARK_NOT_FOUND

{
  "code": "201",
  "message": "Bookmark not found"
}
json
// BOOKMARK_DELETE_FAILED

{
  "code": "205",
  "message": "Bookmark delete failed"
}
// BOOKMARK_DELETE_FAILED

{
  "code": "205",
  "message": "Bookmark delete failed"
}