Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
API Reference

/api/v1/admin/userfiles/{filename}

🚧

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 in Insite.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()
Language
Credentials
Query
Click Try It! to start a request and see the response here!