New to Telerik Report Server? Download free 30-day trial

Report Server API Client Examples

Login

  var settings = new Settings()
  {
      BaseAddress = "https://myreportserver:83"
  };

  using (var rsClient = new ReportServerClient(settings))
  {
      rsClient.Login("username", "password");
  }

Get Resource

  var category = rsClient.GetCategory("categoryId");

Create Resource

  var categoryData = new CreateCategoryData()
  {
      Name = "New Category",
  };
  var newCategory = rsClient.CreateCategory(categoryData);

Update Resource

  var category = rsClient.GetCategory("categoryId");
  category.Name = "Updated Name";
  var updatedCategory = rsClient.UpdateCategory(category);

Delete Resource

  rsClient.DeleteCategory("categoryId");
In this article