Monitor Report Server

<back to all web services

NewReportRequest

The following routes are available for this service:
GET,POST/newreport
ReportRequestBase Parameters:
NameParameterData TypeRequiredDescription
ReportTypeformstringNo
StartTimeformDateTimeNo
EndTimeformDateTimeNo
CompanyIdformintNo
GroupTypeformReportGroupTypeNo
OptionsformList<ReportOptionsBase>No
ObjectsformList<ObjectOptions>No
TimeZoneIdformstringNo
SettingsformReportRequestSetting[]No
ApiRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyformstringNo
ReportOptionsBase Parameters:
NameParameterData TypeRequiredDescription
DebugformboolNo
ObjectOptions Parameters:
NameParameterData TypeRequiredDescription
ObjectIdformintNo
ObjectNameformstringNo
ExternalObjectIdformstringNo
OptionsformList<IReportOptions>No
ArgumentsformObject[]No
IReportOptions Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
ReportRequestSetting Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ValueformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /newreport HTTP/1.1 
Host: api.v3.monitorsystem.ru 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<NewReportRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.WebApi.Client.Reporting">
  <ApiKey xmlns="http://schemas.datacontract.org/2004/07/TS.WebApi.Client">String</ApiKey>
  <EndTime>0001-01-01T00:00:00</EndTime>
  <GroupType>None</GroupType>
  <Objects>
    <ObjectOptions>
      <Arguments xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:anyType />
      </Arguments>
      <ExternalObjectId>String</ExternalObjectId>
      <ObjectName>String</ObjectName>
      <Options xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:anyType i:nil="true" />
      </Options>
    </ObjectOptions>
  </Objects>
  <Options xmlns:d2p1="http://schemas.datacontract.org/2004/07/TS.Common.Reporting">
    <d2p1:ReportOptionsBase i:nil="true" />
  </Options>
  <ReportType>String</ReportType>
  <Settings>
    <ReportRequestSetting>
      <Name>String</Name>
      <Value>String</Value>
    </ReportRequestSetting>
  </Settings>
  <StartTime>0001-01-01T00:00:00</StartTime>
  <TimeZoneId>String</TimeZoneId>
</NewReportRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ArrayOfKeyValueOfintArrayOfKeyValueOfDateTimeRangeArrayOfReportBasea78jgKUEty7Ep6D1 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfintArrayOfKeyValueOfDateTimeRangeArrayOfReportBasea78jgKUEty7Ep6D1>
    <Key>0</Key>
    <Value>
      <KeyValueOfDateTimeRangeArrayOfReportBasea78jgKUE>
        <Key>
          <End xmlns="">0001-01-01T00:00:00</End>
          <Start xmlns="">0001-01-01T00:00:00</Start>
        </Key>
        <Value xmlns:d5p1="http://schemas.datacontract.org/2004/07/TS.Common.Reporting">
          <d5p1:ReportBase i:nil="true" />
        </Value>
      </KeyValueOfDateTimeRangeArrayOfReportBasea78jgKUE>
    </Value>
  </KeyValueOfintArrayOfKeyValueOfDateTimeRangeArrayOfReportBasea78jgKUEty7Ep6D1>
</ArrayOfKeyValueOfintArrayOfKeyValueOfDateTimeRangeArrayOfReportBasea78jgKUEty7Ep6D1>