Table connected to API GET https://communitydev.altair.com/api/sn_communities/v1/community/contents/

LizB
Tera Expert

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?

 

 

1 ACCEPTED SOLUTION

James Chun
Kilo Patron

Hey @LizB,

 

Did a bit of reverse engineering, I believe the following script dictates whether the user can 'bookmark' a content.

 

Script Include: CommunityBookmarkDao

JamesChun_0-1709586339444.png

 

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

 

View solution in original post

2 REPLIES 2

James Chun
Kilo Patron

Hey @LizB,

 

Did a bit of reverse engineering, I believe the following script dictates whether the user can 'bookmark' a content.

 

Script Include: CommunityBookmarkDao

JamesChun_0-1709586339444.png

 

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

 

LizB
Tera Expert

@James ChunThanks for the information.  Greatly appreciated.