How to mock API request depending on body content

Hello folks !

I am trying to mock an API POST request.
The API must return data depending on the content of the body of the request.
I cannot really modify the path of the endpoint unfortunately so I must stick to /something

example:
if the body contains A then I expect Mockaroo to return a valid JSON for A
otherwise if the body contains B, then it’s a valid JSON for B that is expected in the response.

Is this use case achievable with Mockaroo ?