Skip to content

Update a bookmark

patch/api/bookmark/:id
Update 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.

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_NOT_FOUND

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

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

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

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

{
  "code": "204",
  "message": "Bookmark update failed"
}
// BOOKMARK_UPDATE_FAILED

{
  "code": "204",
  "message": "Bookmark update failed"
}