Skip Okta dashboard after user resetting the password through reset password Link

I’m using https://{domain}/api/v1/users/{userID}/lifecycle/reset_password?sendEmail=false above url for getting reset password link and when I’m loading it in browser I’m able to reset the password , however after resetting the password its redirecting to okta dashboard. I need to redirect to custom URL. It would be helpful if I get solution on this.

Hello,
If you are using an Okta Classic Org the officially supported way is to set a default application,
https://help.okta.com/en-us/Content/Topics/Settings/settings-redirect-to-custom-page.htm

It is also possible to use the query parameter fromURI in many cases.
Note that fromURI is not officially supported and the functionality could change at a later time.
Whatever URI you use make sure it is set as a trusted origin in your Okta Org.
so for,
https://{domain}.okta.com/reset_password/drpj62pPwZGJ12345678?fromURI=https://www.epo.org
make sure https://www.epo.org is setup as a redirect URI in trusted origins.