Request timeout for single call

I would like to set the request timeout to a specific value for a single call, and then set it to another value for the other calls. Is it possible?

A way to do it would be to specify the value of the global setting from a script, but I do not know how to do it. Can anyone help? Thanks!

Postman has a setting that you set manually in Settings > General > Request timeout in ms that you can set if you want to set an explicit timeout. However, you won’t be able to do what you’re trying to do from a script.

You can, however, write request tests to make sure your response times are under a certain threshold. That way when you run the request, the test will fail if it’s slower than say, 800ms:

pm.test("Response time is less than 800ms", function () {

It will force me to change many more tests but, yes, it can be done. Thanks!