Modified the addBookmark API

-1 means error occured