How to increase response time of an api via test script

Hello, I am writing a testcases for a collection. Some api is taking much time and getting response time out error.
I would like to know how to increase response time out via test script(pre-request script).

Hi @technical-physicist8,

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.