POST api/CrosstabReport/Add

Request Information

URI Parameters

None.

Body Parameters

CrosstabReportModel
NameDescriptionTypeAdditional information
Items

Collection of ItemModel

None.

ID

integer

None.

Name

string

Required

Survey_ID

integer

Required

Project_ID

integer

Required

Favorite

boolean

None.

InsertedDate

date

None.

Employee_ID

integer

None.

Contact_ID

integer

None.

LoginType

string

None.

Rights

ReportRightType

None.

Merged_Survey_ID

integer

None.

SurveyVersion

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "RowQuestionModel": {
        "ID": 1,
        "Type": "OperationalData",
        "ItemID": 2
      },
      "LayerQuestionModel": {
        "ID": 1,
        "Type": "OperationalData",
        "ItemID": 2
      },
      "ColumnQuestionsModel": [
        {
          "ID": 1,
          "Type": "OperationalData",
          "ItemID": 2
        },
        {
          "ID": 1,
          "Type": "OperationalData",
          "ItemID": 2
        }
      ]
    },
    {
      "RowQuestionModel": {
        "ID": 1,
        "Type": "OperationalData",
        "ItemID": 2
      },
      "LayerQuestionModel": {
        "ID": 1,
        "Type": "OperationalData",
        "ItemID": 2
      },
      "ColumnQuestionsModel": [
        {
          "ID": 1,
          "Type": "OperationalData",
          "ItemID": 2
        },
        {
          "ID": 1,
          "Type": "OperationalData",
          "ItemID": 2
        }
      ]
    }
  ],
  "ApplyLayerToAll": false,
  "ID": 1,
  "Name": "sample string 2",
  "Survey_ID": 3,
  "Project_ID": 4,
  "Favorite": true,
  "InsertedDate": "2024-09-19T20:44:56.9313575+02:00",
  "Employee_ID": 1,
  "Contact_ID": 1,
  "LoginType": "sample string 7",
  "Rights": "Private",
  "Merged_Survey_ID": 1,
  "SurveyVersion": 8
}

text/plain

Sample:
{"Items":[{"RowQuestionModel":{"ID":1,"Type":"OperationalData","ItemID":2},"LayerQuestionModel":{"ID":1,"Type":"OperationalData","ItemID":2},"ColumnQuestionsModel":[{"ID":1,"Type":"OperationalData","ItemID":2},{"ID":1,"Type":"OperationalData","ItemID":2}]},{"RowQuestionModel":{"ID":1,"Type":"OperationalData","ItemID":2},"LayerQuestionModel":{"ID":1,"Type":"OperationalData","ItemID":2},"ColumnQuestionsModel":[{"ID":1,"Type":"OperationalData","ItemID":2},{"ID":1,"Type":"OperationalData","ItemID":2}]}],"ApplyLayerToAll":false,"ID":1,"Name":"sample string 2","Survey_ID":3,"Project_ID":4,"Favorite":true,"InsertedDate":"2024-09-19T20:44:56.9313575+02:00","Employee_ID":1,"Contact_ID":1,"LoginType":"sample string 7","Rights":"Private","Merged_Survey_ID":1,"SurveyVersion":8}

application/xml, text/xml

Sample:
<CrosstabReportModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model.Crosstab">
  <Contact_ID xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">1</Contact_ID>
  <Employee_ID xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">1</Employee_ID>
  <Favorite xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">true</Favorite>
  <ID xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">1</ID>
  <InsertedDate xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">2024-09-19T20:44:56.9313575+02:00</InsertedDate>
  <LoginType xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">sample string 7</LoginType>
  <Merged_Survey_ID xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">1</Merged_Survey_ID>
  <Name xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">sample string 2</Name>
  <Project_ID xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">4</Project_ID>
  <Rights xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">Private</Rights>
  <SurveyVersion xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">8</SurveyVersion>
  <Survey_ID xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">3</Survey_ID>
  <ApplyLayerToAll>false</ApplyLayerToAll>
  <Items>
    <ItemModel>
      <ColumnQuestionsModel>
        <ItemDescription>
          <ID>1</ID>
          <ItemID>2</ItemID>
          <Type>OperationalData</Type>
        </ItemDescription>
        <ItemDescription>
          <ID>1</ID>
          <ItemID>2</ItemID>
          <Type>OperationalData</Type>
        </ItemDescription>
      </ColumnQuestionsModel>
      <LayerQuestionModel>
        <ID>1</ID>
        <ItemID>2</ItemID>
        <Type>OperationalData</Type>
      </LayerQuestionModel>
      <RowQuestionModel>
        <ID>1</ID>
        <ItemID>2</ItemID>
        <Type>OperationalData</Type>
      </RowQuestionModel>
    </ItemModel>
    <ItemModel>
      <ColumnQuestionsModel>
        <ItemDescription>
          <ID>1</ID>
          <ItemID>2</ItemID>
          <Type>OperationalData</Type>
        </ItemDescription>
        <ItemDescription>
          <ID>1</ID>
          <ItemID>2</ItemID>
          <Type>OperationalData</Type>
        </ItemDescription>
      </ColumnQuestionsModel>
      <LayerQuestionModel>
        <ID>1</ID>
        <ItemID>2</ItemID>
        <Type>OperationalData</Type>
      </LayerQuestionModel>
      <RowQuestionModel>
        <ID>1</ID>
        <ItemID>2</ItemID>
        <Type>OperationalData</Type>
      </RowQuestionModel>
    </ItemModel>
  </Items>
</CrosstabReportModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json, text/plain

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>