Edit this page

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");
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy