When a bookmark is created Jive tries to retrieve things like the title, etc by downloading the referenced url. This works fine, when it is a public api, or when the user is logged into Jive directly. When doing this via the REST Api the retrieval of the bookmark url content does to get the credentials of the user, and thus it is always redirected to the login page. No way around this that I am aware of.
Create your bookmark, retrieve it and then set the bookmark to your liking
Thanks a lot Nils
While creating I am also firing an update rest call to cahnge the subject and that works.
I have one more question though
While I was testing I noticed that when I delete a bookmark created via rest API it gets deleted .(Also the entry in the jivebookmark table goes)
If I now try creating the same bookmark again it gets created too.( The entry also gets added in jivebookmark table)
But when I am trying to view the bookmark in the browser it throws an 404 error.
This seems to be a weird issue because I see that for particular bookmark suppose :<jiveurl>/bookmarks/1024 I see an entry in database but still it throws an error.
I tested the same scenario without restAPI and I dont face any issue then.
sorry, no. I haven't come across that.Sounds like a potential bug