put https://dogfood.commerce.insitesandbox.com/api/v1/admin/userfiles/
Important
Optimizely added authentication to an endpoint that could be used maliciously. If you see unauthorized exceptions when making requests to integration-related endpoints, you can use the class
WebApiClientSession
available inInsite.Common
.var webApiClient = new WebApiClientSession(this.SiteConnection.Url.AbsoluteUri); if (!webApiClient.AuthenticateClient(this.SiteConnection.UserName, this.SiteConnection.Password)) { throw new Exception($"Failed to authenticate to Web API with user: {this.SiteConnection.UserName}"); } var httpClient = webApiClient.GetClient()