How to return one example for request and another if authorization is invalid in Postman collection?

Viewed 14

There is a request in a Postman mock collection, and under that, there are two example responses. I want to send the first example response if the authorization is valid and the second if it is invalid.

Is it possible in Postman?

enter image description here

0 Answers
Related