Validation API response

Hi,
I am working on post request API, the response I am getting is in ‘text’. I don’t know how to validate that. I am attaching the screenshot of that response. Please someone help me in this
image

Hi @sindhu-ivaturi

I’m not 100% sure what you are trying to assert. But if it’s the text in the screenshot then you could try something like;

pm.test("Body is correct", function () {
    pm.response.to.have.body("Scenario Already Exists!");
});

Thank you for providing solution to my problem