Switch Developer Documentation
  • Welcome
  • ⚠️Migration to Auth0
    • Overview
    • Status
    • Switch API
      • Client Credentials Flow
      • Organization Client
      • Token Endpoint
    • OpenADR 3 VTN API
      • VTN Credentials
      • Token Endpoint
  • Getting Started
    • Concepts
    • Guides
      • How to send readings
      • Market operations
      • Conditional agreements
    • Support
  • Switch API
    • Overview
    • Terms of Use
    • Authentication
      • Client Credentials Flow
      • Organization Client
      • Token Endpoint
    • Rate Limiting
    • Errors
    • API Reference
      • Market Zones
      • Products
      • Resources
      • Meters
      • Readings
  • OpenADR 3
    • Overview
    • Authentication
      • VTN Credentials
      • Token Endpoint
    • API Reference
      • Programs
      • Events
      • Reports
      • Subscriptions
      • Vens
    • Webhooks
      • Callback URL verification
      • Domain and IP addresses
      • Best practices
    • Payloads
    • Code samples
  • Libraries
    • .NET SDK
      • SDK Reference
        • IAuthService.Auth
        • IProgramsService.Programs
        • IEventsService.Events
        • IReportsService.Reports
        • ISubscriptionsService.Subscriptions
        • IVensService.Vens
Powered by GitBook
On this page
  • CreateReportAsync
  • DeleteReportAsync
  • SearchReportsAsync
  • FindReportByIdAsync
  • UpdateReportAsync

Was this helpful?

  1. Libraries
  2. .NET SDK
  3. SDK Reference

IReportsService.Reports

Collection of functions to interact with the Reports API endpoint.

All URI’s are relative to the VTN URL configured.

Method
HTTP request
Description

CreateReportAsync

POST /reports

Create a report

DeleteReportAsync

DELETE /reports/{reportID}

Delete a report

SearchReportsAsync

GET /reports

Searches all reports

FindReportByIdAsync

GET /reports/{reportID}

Searches reports by report ID

UpdateReportAsync

PUT /reports/{reportID}

Update a report

CreateReportAsync

Task<Report> CreateReportAsync(
    Report report,
    RequestOptions? options = default,
    CancellationToken cancellationToken = default)

Create a new report in the server.

DeleteReportAsync

Task<Report> DeleteReportAsync(
    string reportId,
    RequestOptions? options = default,
    CancellationToken cancellationToken = default)

Delete an existing report with the report ID.

SearchReportsAsync

Task<List<Report>> SearchReportsAsync(
    string? programId = default,
    string? eventId = default,
    string? clientName = default,
    int? skip = default,
    int? limit = default,
    RequestOptions? options = default,
    CancellationToken cancellationToken = default)

Searches all reports known to the server. Use skip and pagination query params to limit response size.

FindReportByIdAsync

Task<Report> FindReportByIdAsync(
    string reportId,
    RequestOptions? options = default,
    CancellationToken cancellationToken = default)

Find report associated by the report ID.

UpdateReportAsync

Task<Report> UpdateReportAsync(
    string reportId,
    Report report,
    RequestOptions? options = default,
    CancellationToken cancellationToken = default)

Update an existing report with specified report ID.

PreviousIEventsService.EventsNextISubscriptionsService.Subscriptions

Last updated 9 months ago

Was this helpful?