Forum Discussion
Hi, this call should return the moderation setting (pre or post):
http://community.lithium.com/community-name/restapi/vc/messages/id/<id>/board/settings/name/board.enable_moderation
Also, in the forthcoming 12.8 release we added some query parameters to NodeMessageContext.recent that might be useful for you. For example, moderation.scope (optional) filters down the recent message view to a smaller set and it takes the value 'Approved','Rejected' and 'Unmoderated'
Example Usage:
http://community.lithium.com/community-name/restapi/vc/posts/recent?moderation.scope=approved&visibility.scope=moderator http://community.lithium.com/community-name/restapi/vc/posts/recent?moderation.scope=rejected&visibility.scope=moderator http://community.lithium.com/community-name/restapi/vc/posts/recent?moderation.scope=unmoderated&visibility.scope=moderator
- jackdupont13 years agoHelper
Thanks for the quick replies.
In lithium, an 'unmoderated' content can be a 'pre' moderated or 'post' moderated, seems like there are no distinction between them...
However as an user when I go do :
http://community.lithium.com/community-name/t5/premod/moderationitemspage/tab/unmoderated%3Aidea
it only show up the premoderation message.
Do we have something similar in the REST API ?
Thanks.
- ArminP13 years agoLithium Alumni (Retired)
Jeff,
I need to determine via the rest API if a specific message is in a specific ModerationStatus.
Izabela told me there are 3 states such as "to be moderated", "In moderation" and "Post Moderation".I checked Lithosphere and docu but can't find any reference - apparently there are some new 12.08 developments in this area. I saw the above and am not sure how the 3 states mentioned : 'Approved','Rejected' or 'Unmoderated' map into what Izabela mentioned.
So my question:
Given a message ID - example : http://liaresponse.stage.lithium.com/restapi/vc/messages/id/2079How can I find the Moderation state ? What are the valid states?
Thanks
Armin- ArminP13 years agoLithium Alumni (Retired)
Got the answer from Adam Ayres (you rock)
Example: http://liaresponse.stage.lithium.com/restapi/vc/messages/id/2079/moderation/status
States:
unmoderated
flagged
approved
rejected
uploading
error
unknown
marked_undecided
marked_approved
marked_rejected
Related Content
- 3 years ago
- 2 years ago
- 2 years ago