New to Telerik ReportingStart a free 30-day trial

Get Report Parameters Overview

Request

POST /api/reports/clients/{clientId}/parameters

Path parameters

NameTypeDescription
clientIdStringID of the service client. Returned by Register Client.

Request Body

ReportSource object. Represent a report and its current parameter values.

Response

HTTP Status CodeDescription
200 OKReport instance successfully created
400 BadRequestNo report name is specified
404 Not FoundThe specified report name cannot be resolved / Parameter values are not valid
410 GoneThe specified clientId cannot be found (expired)

Response Body

Array containing Parameter objects representing the report parameters that should be used to prompt the user.

Sample

  • Request

      POST /api/reports/clients/2c3d/parameters HTTP/1.1
    
      {
      	report: "MyReport1",
      	parameterValues: {
      		"p1": "v1",
      		"p2": 20
      	},
      }
  • Response

      HTTP/1.1 200 OK
    
      [
      	{
      		"name": "p1",
      		"id": "p1",
      		"type": "System.Integer",
      		"text": "Input p1",
      		"multivalue": false,
      		"allowNull": true,
      		"allowBlank": false,
      		"isVisible": true,
      		"autoRefresh": false,
      		"hasChildParameters": true,
      		"childParameters": ["p2"],
      		"value":1
      		"label": "1",
      	},
      	{
      		"name": "p2",
      		"id": "p2",
      		"type": "System.String",
      		"text": "Please input p2",
      		"multivalue": false,
      		"allowNull": false,
      		"allowBlank": false,
      		"isVisible": true,
      		"autoRefresh": false,
      		"hasChildParameters": false,
      		"availableValues": [
      			  {"name": "Sofia", "value": "Sofia"}
      			  {"name": "Berlin", "value": "Berlin"}
      		],
      		"value": "Sofia"
      		"label": "Sofia",
      	}
      ]
In this article
RequestResponseSample
Not finding the help you need?
Contact Support