POST api/Report/AddItems?reportID={reportID}&addFromguid={addFromguid}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
reportID | integer |
Required |
|
addFromguid | string |
Required |
Body Parameters
DataForAddItemsName | Description | Type | Additional information |
---|---|---|---|
FrequencyReportModel | FrequencyReportModel |
None. |
|
CrosstabReportModel | CrosstabReportModel |
None. |
|
ItemSettings | Collection of ItemSettings |
None. |
Request Formats
application/json, text/json
Sample:
{ "FrequencyReportModel": { "OperationalData": [ 1, 2 ], "Questions": [ { "QuestionID": 1, "AnswerType": 0, "AnswerID": 1 }, { "QuestionID": 1, "AnswerType": 0, "AnswerID": 1 } ], "Groups": [ "sample string 1", "sample string 2" ], "Variables": [ 1, 2 ], "LayoutMode": true, "ID": 2, "Name": "sample string 3", "Survey_ID": 4, "Project_ID": 5, "Favorite": true, "InsertedDate": "2025-04-04T04:57:53.1181233+02:00", "Employee_ID": 1, "Contact_ID": 1, "LoginType": "sample string 8", "Rights": "Private", "Merged_Survey_ID": 1, "SurveyVersion": 9 }, "CrosstabReportModel": { "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": "2025-04-04T04:57:53.1181233+02:00", "Employee_ID": 1, "Contact_ID": 1, "LoginType": "sample string 7", "Rights": "Private", "Merged_Survey_ID": 1, "SurveyVersion": 8 }, "ItemSettings": [ { "ItemType": "Frequency", "GUID": "sample string 1", "Order": 2, "Gridster": { "Row": 1, "Column": 2, "SizeX": 3, "SizeY": 4 } }, { "ItemType": "Frequency", "GUID": "sample string 1", "Order": 2, "Gridster": { "Row": 1, "Column": 2, "SizeX": 3, "SizeY": 4 } } ] }
text/plain
Sample:
{"FrequencyReportModel":{"OperationalData":[1,2],"Questions":[{"QuestionID":1,"AnswerType":0,"AnswerID":1},{"QuestionID":1,"AnswerType":0,"AnswerID":1}],"Groups":["sample string 1","sample string 2"],"Variables":[1,2],"LayoutMode":true,"ID":2,"Name":"sample string 3","Survey_ID":4,"Project_ID":5,"Favorite":true,"InsertedDate":"2025-04-04T04:57:53.1181233+02:00","Employee_ID":1,"Contact_ID":1,"LoginType":"sample string 8","Rights":"Private","Merged_Survey_ID":1,"SurveyVersion":9},"CrosstabReportModel":{"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":"2025-04-04T04:57:53.1181233+02:00","Employee_ID":1,"Contact_ID":1,"LoginType":"sample string 7","Rights":"Private","Merged_Survey_ID":1,"SurveyVersion":8},"ItemSettings":[{"ItemType":"Frequency","GUID":"sample string 1","Order":2,"Gridster":{"Row":1,"Column":2,"SizeX":3,"SizeY":4}},{"ItemType":"Frequency","GUID":"sample string 1","Order":2,"Gridster":{"Row":1,"Column":2,"SizeX":3,"SizeY":4}}]}
application/xml, text/xml
Sample:
<DataForAddItems xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rtr.Api.Controllers"> <CrosstabReportModel xmlns:d2p1="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">2025-04-04T04:57:53.1181233+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> <d2p1:ApplyLayerToAll>false</d2p1:ApplyLayerToAll> <d2p1:Items> <d2p1:ItemModel> <d2p1:ColumnQuestionsModel> <d2p1:ItemDescription> <d2p1:ID>1</d2p1:ID> <d2p1:ItemID>2</d2p1:ItemID> <d2p1:Type>OperationalData</d2p1:Type> </d2p1:ItemDescription> <d2p1:ItemDescription> <d2p1:ID>1</d2p1:ID> <d2p1:ItemID>2</d2p1:ItemID> <d2p1:Type>OperationalData</d2p1:Type> </d2p1:ItemDescription> </d2p1:ColumnQuestionsModel> <d2p1:LayerQuestionModel> <d2p1:ID>1</d2p1:ID> <d2p1:ItemID>2</d2p1:ItemID> <d2p1:Type>OperationalData</d2p1:Type> </d2p1:LayerQuestionModel> <d2p1:RowQuestionModel> <d2p1:ID>1</d2p1:ID> <d2p1:ItemID>2</d2p1:ItemID> <d2p1:Type>OperationalData</d2p1:Type> </d2p1:RowQuestionModel> </d2p1:ItemModel> <d2p1:ItemModel> <d2p1:ColumnQuestionsModel> <d2p1:ItemDescription> <d2p1:ID>1</d2p1:ID> <d2p1:ItemID>2</d2p1:ItemID> <d2p1:Type>OperationalData</d2p1:Type> </d2p1:ItemDescription> <d2p1:ItemDescription> <d2p1:ID>1</d2p1:ID> <d2p1:ItemID>2</d2p1:ItemID> <d2p1:Type>OperationalData</d2p1:Type> </d2p1:ItemDescription> </d2p1:ColumnQuestionsModel> <d2p1:LayerQuestionModel> <d2p1:ID>1</d2p1:ID> <d2p1:ItemID>2</d2p1:ItemID> <d2p1:Type>OperationalData</d2p1:Type> </d2p1:LayerQuestionModel> <d2p1:RowQuestionModel> <d2p1:ID>1</d2p1:ID> <d2p1:ItemID>2</d2p1:ItemID> <d2p1:Type>OperationalData</d2p1:Type> </d2p1:RowQuestionModel> </d2p1:ItemModel> </d2p1:Items> </CrosstabReportModel> <FrequencyReportModel xmlns:d2p1="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model.Frequency"> <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">2</ID> <InsertedDate xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">2025-04-04T04:57:53.1181233+02:00</InsertedDate> <LoginType xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">sample string 8</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 3</Name> <Project_ID xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">5</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">9</SurveyVersion> <Survey_ID xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model">4</Survey_ID> <d2p1:Groups xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </d2p1:Groups> <d2p1:LayoutMode>true</d2p1:LayoutMode> <d2p1:OperationalData xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> </d2p1:OperationalData> <d2p1:Questions> <d2p1:QuestionModel> <d2p1:AnswerID>1</d2p1:AnswerID> <d2p1:AnswerType>Normal</d2p1:AnswerType> <d2p1:QuestionID>1</d2p1:QuestionID> </d2p1:QuestionModel> <d2p1:QuestionModel> <d2p1:AnswerID>1</d2p1:AnswerID> <d2p1:AnswerType>Normal</d2p1:AnswerType> <d2p1:QuestionID>1</d2p1:QuestionID> </d2p1:QuestionModel> </d2p1:Questions> <d2p1:Variables xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> </d2p1:Variables> </FrequencyReportModel> <ItemSettings xmlns:d2p1="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model.MergedReport"> <d2p1:ItemSettings> <d2p1:GUID>sample string 1</d2p1:GUID> <d2p1:Gridster xmlns:d4p1="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model.Frequency"> <d4p1:Column>2</d4p1:Column> <d4p1:Row>1</d4p1:Row> <d4p1:SizeX>3</d4p1:SizeX> <d4p1:SizeY>4</d4p1:SizeY> </d2p1:Gridster> <d2p1:ItemType>Frequency</d2p1:ItemType> <d2p1:Order>2</d2p1:Order> </d2p1:ItemSettings> <d2p1:ItemSettings> <d2p1:GUID>sample string 1</d2p1:GUID> <d2p1:Gridster xmlns:d4p1="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model.Frequency"> <d4p1:Column>2</d4p1:Column> <d4p1:Row>1</d4p1:Row> <d4p1:SizeX>3</d4p1:SizeX> <d4p1:SizeY>4</d4p1:SizeY> </d2p1:Gridster> <d2p1:ItemType>Frequency</d2p1:ItemType> <d2p1:Order>2</d2p1:Order> </d2p1:ItemSettings> </ItemSettings> </DataForAddItems>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of BaseItemName | Description | Type | Additional information |
---|---|---|---|
GUID | string |
None. |
|
Title | string |
None. |
|
Order | integer |
None. |
|
SubTitle | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "GUID": "sample string 1", "Title": "sample string 2", "Order": 3, "SubTitle": "sample string 4" }, { "GUID": "sample string 1", "Title": "sample string 2", "Order": 3, "SubTitle": "sample string 4" } ]
text/plain
Sample:
[{"GUID":"sample string 1","Title":"sample string 2","Order":3,"SubTitle":"sample string 4"},{"GUID":"sample string 1","Title":"sample string 2","Order":3,"SubTitle":"sample string 4"}]
application/xml, text/xml
Sample:
<ArrayOfBaseItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model"> <BaseItem> <GUID>sample string 1</GUID> <Order>3</Order> <SubTitle>sample string 4</SubTitle> <Title>sample string 2</Title> </BaseItem> <BaseItem> <GUID>sample string 1</GUID> <Order>3</Order> <SubTitle>sample string 4</SubTitle> <Title>sample string 2</Title> </BaseItem> </ArrayOfBaseItem>