POST Api/WebUtilities/AjaxGenerateReport?ReportEnum={ReportEnum}&userid={userid}&hasReportManager={hasReportManager}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ReportEnum

integer

Required

userid

globally unique identifier

Required

hasReportManager

boolean

Default value is False

Body Parameters

ReportBattery
NameDescriptionTypeAdditional information
AssessmentIds

Collection of string

None.

SelectedOptions

Dictionary of string [key] and string [value]

None.

SelectedAssessments

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "assessmentIds": [
    "sample string 1",
    "sample string 2"
  ],
  "selectedOptions": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "selectedAssessments": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ReportBattery xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccessManager.LegacyTranslations">
  <AssessmentIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </AssessmentIds>
  <SelectedAssessments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </SelectedAssessments>
  <SelectedOptions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </SelectedOptions>
</ReportBattery>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ReportBattery'.

Response Information

Resource Description

Dictionary of string [key] and string [value]

Response Formats

application/json, text/json

Sample:
{
  "sample string 1": "sample string 2",
  "sample string 3": "sample string 4"
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfstringstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfstringstring>
    <Key>sample string 1</Key>
    <Value>sample string 2</Value>
  </KeyValueOfstringstring>
  <KeyValueOfstringstring>
    <Key>sample string 3</Key>
    <Value>sample string 4</Value>
  </KeyValueOfstringstring>
</ArrayOfKeyValueOfstringstring>