Hi !
When the blog comment is posted via API, It is auto approved (published) automatically. It should go to moderation first. I set the state as it is defined in the API documentation as “state”: “PENDING_AKISMET”
That is just a sample return, not what you want to send for that property state
PENDING_MODERATION
is tue state you should send.
feom the docs page it is best to look for the property on the page to see if you can find the options for a property - this was shown in the list comments.
it should be displayed on the create comment, it’s unfortunate it isn’t.
Thanks for your reply. I also tried with $state = ‘PENDING_MODERATION’; however it is still being auto approved as -
[state] => APPROVED
You likely need to check your blog settings from inside the settings menu.
It probably has an auto approve setup for all comments