i tried the same from the velocity but unfortunately the rest call gets into error part whereas the rest api is executed successfully