I used "/contents" endpoint to fetch discussions of a space.
In the response, I didn't find "restrictReplies" flag. Ideally, I think, for the discussion which are locked, this flag should be there.
Due to this missing flag, I am unable to know whether the discussion is locked or not.
As the matter of fact, I explicitly asked API to give back the "restrictReplies" flag, in the response, by providing the "fields" parameter in the request with value containing "restrictReplies".
Any help would be appreciated. Thanks.
I just checked against this thread, and when Lock was activated, I saw the restrictReplies field change from false to true.
Make sure that you are looking at the parent thread and not a specific message. If you continue to see this issue, I would file a support ticket as this is how the API is supposed to work, and if it is confirmed, then this is probably the bug and we'll need to get our engineers to reproduce the scenario.