Schedule trigger API request code not working

Kindly share the screenshot of error.