- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 12:13 PM
The REST API for Communities has the following method which returns whether a particular piece of content (such as a question or blog) can be bookmarked:
GET https://communitydev.altair.com/api/sn_communities/v1/community/contents/{contentId}/menuItems
{
"result": {
"status": 200,
"data": {
"canEdit": true,
"canModerate": true,
"canBookmark": true,
"activities_allowed": {
"bookmark": true
}
}
}
}
Does anybody know if there is a table or a system property where the information for canBookmark = true or activites_allowed.bookmark = true is stored?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 01:10 PM
Hey @LizB,
Did a bit of reverse engineering, I believe the following script dictates whether the user can 'bookmark' a content.
Script Include: CommunityBookmarkDao
From the script, looks like the ALL of the following conditions must be true to set 'bookmark' to be true:
- Content state is 'published'
- Has read access to the content
- Content type must be one of the following - Blog, document, event, question, or video
As this is not from an official documentation, you might wanna verify the above with some testing.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 01:10 PM
Hey @LizB,
Did a bit of reverse engineering, I believe the following script dictates whether the user can 'bookmark' a content.
Script Include: CommunityBookmarkDao
From the script, looks like the ALL of the following conditions must be true to set 'bookmark' to be true:
- Content state is 'published'
- Has read access to the content
- Content type must be one of the following - Blog, document, event, question, or video
As this is not from an official documentation, you might wanna verify the above with some testing.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 07:36 AM
@James ChunThanks for the information. Greatly appreciated.