fix endpoint parameter when doing curl request to correct core