Repeat API request if defined condition is not met

Actually we did that, still it did not work. The solution can be found here: