Hide posts via API

Is there any API to hide a post (not a topic) without deleting it?

We want flagged posts to be hidden until reviewed, but using the delete API resolves the flag, which we want to avoid.

For topics, we can unlist them, but we need a similar option for individual posts.

Is this possible via any API or configuration?