POST api/Survey/SaveSurvey

Request Information

URI Parameters

None.

Body Parameters

Survey
NameDescriptionTypeAdditional information
Id

integer

None.

SurveyName

string

None.

FinishDate

date

None.

TopicSurveyName

string

None.

TopicSurveyId

integer

None.

QuestionName

string

None.

QuestionType

integer

None.

SubQuestion

string

None.

QuestionId

integer

None.

QuestionChoiceId

integer

None.

Length

integer

None.

Rank

integer

None.

IsDone

boolean

None.

ResultQuestionChoiceId

integer

None.

ResponseValue

string

None.

Choose

string

None.

ilTopic

Collection of TopicName

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'EBM.Portal.Bus.Model.Survey'. Path 'ilTopic[0].ilQuestion[0].ListSubQuestion'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'EBM.Portal.Bus.Model.Survey'. Path 'ilTopic[0].ilQuestion[0].ListSubQuestion'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[EBM.Portal.Bus.Model.Survey, EBM.Portal.Bus, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[EBM.Portal.Bus.Model.Survey, EBM.Portal.Bus, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

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 'Survey'.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />