Forum Discussion
2 Replies
Sort By
- ClaudiusH8 years agoKhoros Alumni (Retired)
Yes, that should work, You can update the "read_only" field to "true" via a API v2 call on the messages collection:
If you loop through all the non-locked topics before the given date...
- nehaSharma7 years agoExpert
Warren_Brill- You can set read_only true using API v2 as mentioned by ClaudiusH, since this is an API V2 call, so you need to call it outside of Lithium using OAuth 2.0 flow.
There is a simple API v1 solution as well which can work on a custom component or endpoint.
You need to make two calls.
1.
select * from messages where board.id = 'boardID' and post_time < 'Specify msg Post_time'
2. You can loop through the fetched messages and pass the Message ID to the following :
<#assign closemsgs = restadmin("/messages/id/${msgId}/readonly/set") />
Related Content
- 9 years ago