Corrected User invitation URL, to match example request

I was wondering why I was getting 404 errors when trying to utilize this code, when I noticed the example request URL is different (and it works). Updated the endpoint URL to match what's in the example request.