Updated endpoint URL so it is an absolute path