POST UserCourse/SaveSurveyResponse

Request Information

URI Parameters

None.

Body Parameters

SurveyResponse
NameDescriptionTypeAdditional information
ResponseId

string

None.

SurveyId

string

None.

UserId

string

None.

CreatedOn

date

None.

Type

string

None.

ResponseOnQuestions

Collection of SurveyResponseOnQuestion

None.

Request Formats

application/json, text/json

Sample:
{
  "ResponseId": "sample string 1",
  "SurveyId": "sample string 2",
  "UserId": "sample string 3",
  "CreatedOn": "2021-10-20T07:10:17.3740604+00:00",
  "Type": "sample string 4",
  "ResponseOnQuestions": [
    {
      "ResponsedQuestionId": "sample string 1",
      "ResponseId": "sample string 2",
      "QuestionId": "sample string 3",
      "CreatedOn": "2021-10-20T07:10:17.3740604+00:00",
      "ResponseAnswers": [
        {
          "Id": "sample string 1",
          "ResponsedQuestionId": "sample string 2",
          "Value": "sample string 3",
          "Comments": "sample string 4"
        },
        {
          "Id": "sample string 1",
          "ResponsedQuestionId": "sample string 2",
          "Value": "sample string 3",
          "Comments": "sample string 4"
        }
      ]
    },
    {
      "ResponsedQuestionId": "sample string 1",
      "ResponseId": "sample string 2",
      "QuestionId": "sample string 3",
      "CreatedOn": "2021-10-20T07:10:17.3740604+00:00",
      "ResponseAnswers": [
        {
          "Id": "sample string 1",
          "ResponsedQuestionId": "sample string 2",
          "Value": "sample string 3",
          "Comments": "sample string 4"
        },
        {
          "Id": "sample string 1",
          "ResponsedQuestionId": "sample string 2",
          "Value": "sample string 3",
          "Comments": "sample string 4"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<SurveyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Solve.Models">
  <CreatedOn>2021-10-20T07:10:17.3740604+00:00</CreatedOn>
  <ResponseId>sample string 1</ResponseId>
  <ResponseOnQuestions>
    <SurveyResponseOnQuestion>
      <CreatedOn>2021-10-20T07:10:17.3740604+00:00</CreatedOn>
      <QuestionId>sample string 3</QuestionId>
      <ResponseAnswers>
        <SurveyResponseAnswer>
          <Comments>sample string 4</Comments>
          <Id>sample string 1</Id>
          <ResponsedQuestionId>sample string 2</ResponsedQuestionId>
          <Value>sample string 3</Value>
        </SurveyResponseAnswer>
        <SurveyResponseAnswer>
          <Comments>sample string 4</Comments>
          <Id>sample string 1</Id>
          <ResponsedQuestionId>sample string 2</ResponsedQuestionId>
          <Value>sample string 3</Value>
        </SurveyResponseAnswer>
      </ResponseAnswers>
      <ResponseId>sample string 2</ResponseId>
      <ResponsedQuestionId>sample string 1</ResponsedQuestionId>
    </SurveyResponseOnQuestion>
    <SurveyResponseOnQuestion>
      <CreatedOn>2021-10-20T07:10:17.3740604+00:00</CreatedOn>
      <QuestionId>sample string 3</QuestionId>
      <ResponseAnswers>
        <SurveyResponseAnswer>
          <Comments>sample string 4</Comments>
          <Id>sample string 1</Id>
          <ResponsedQuestionId>sample string 2</ResponsedQuestionId>
          <Value>sample string 3</Value>
        </SurveyResponseAnswer>
        <SurveyResponseAnswer>
          <Comments>sample string 4</Comments>
          <Id>sample string 1</Id>
          <ResponsedQuestionId>sample string 2</ResponsedQuestionId>
          <Value>sample string 3</Value>
        </SurveyResponseAnswer>
      </ResponseAnswers>
      <ResponseId>sample string 2</ResponseId>
      <ResponsedQuestionId>sample string 1</ResponsedQuestionId>
    </SurveyResponseOnQuestion>
  </ResponseOnQuestions>
  <SurveyId>sample string 2</SurveyId>
  <Type>sample string 4</Type>
  <UserId>sample string 3</UserId>
</SurveyResponse>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.