Update a bookmark
patch
/api/bookmark/:idUpdate a bookmark for the logged-in user.
Request
Security:
Bearer AuthRouter 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/jsonBody 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"
}