POST api/SurveyMonkeyIntegration/PostMESurveyQuestionOption

Request Information

URI Parameters

None.

Body Parameters

MEQuestionnaireOptionFlagDTO
NameDescriptionTypeAdditional information
CorporationCode

string

String length: inclusive between 0 and 20

ExamId

string

String length: inclusive between 0 and 20

SurveyId

string

String length: inclusive between 0 and 8000

IsStandard

boolean

None.

Choices

Collection of OptionFlag

None.

Request Formats

application/json, text/json

Sample:
{
  "CorporationCode": "sample string 1",
  "ExamId": "sample string 2",
  "SurveyId": "sample string 3",
  "IsStandard": true,
  "Choices": [
    {
      "QuestionId": "sample string 1",
      "OptionId": "sample string 2",
      "flag": 3,
      "position": 4
    },
    {
      "QuestionId": "sample string 1",
      "OptionId": "sample string 2",
      "flag": 3,
      "position": 4
    }
  ]
}

application/xml, text/xml

Sample:
<MSMSurveyMonkeyDTO.MEQuestionnaireOptionFlagDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.DTO">
  <Choices>
    <MSMSurveyMonkeyDTO.OptionFlag>
      <OptionId>sample string 2</OptionId>
      <QuestionId>sample string 1</QuestionId>
      <flag>3</flag>
      <position>4</position>
    </MSMSurveyMonkeyDTO.OptionFlag>
    <MSMSurveyMonkeyDTO.OptionFlag>
      <OptionId>sample string 2</OptionId>
      <QuestionId>sample string 1</QuestionId>
      <flag>3</flag>
      <position>4</position>
    </MSMSurveyMonkeyDTO.OptionFlag>
  </Choices>
  <CorporationCode>sample string 1</CorporationCode>
  <ExamId>sample string 2</ExamId>
  <IsStandard>true</IsStandard>
  <SurveyId>sample string 3</SurveyId>
</MSMSurveyMonkeyDTO.MEQuestionnaireOptionFlagDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AsapResponseOfMEQuestionnaireOptionFlagDTO
NameDescriptionTypeAdditional information
isSuccess

boolean

None.

message

string

None.

jsonObj

MEQuestionnaireOptionFlagDTO

None.

totalCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "isSuccess": true,
  "message": "sample string 2",
  "jsonObj": {
    "CorporationCode": "sample string 1",
    "ExamId": "sample string 2",
    "SurveyId": "sample string 3",
    "IsStandard": true,
    "Choices": [
      {
        "QuestionId": "sample string 1",
        "OptionId": "sample string 2",
        "flag": 3,
        "position": 4
      },
      {
        "QuestionId": "sample string 1",
        "OptionId": "sample string 2",
        "flag": 3,
        "position": 4
      }
    ]
  },
  "totalCount": 3
}

application/xml, text/xml

Sample:
<AsapResponseOfMSMSurveyMonkeyDTO.MEQuestionnaireOptionFlagDTO9DQd0Pqc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.Common">
  <isSuccess>true</isSuccess>
  <jsonObj xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASAP_BL.DTO">
    <d2p1:Choices>
      <d2p1:MSMSurveyMonkeyDTO.OptionFlag>
        <d2p1:OptionId>sample string 2</d2p1:OptionId>
        <d2p1:QuestionId>sample string 1</d2p1:QuestionId>
        <d2p1:flag>3</d2p1:flag>
        <d2p1:position>4</d2p1:position>
      </d2p1:MSMSurveyMonkeyDTO.OptionFlag>
      <d2p1:MSMSurveyMonkeyDTO.OptionFlag>
        <d2p1:OptionId>sample string 2</d2p1:OptionId>
        <d2p1:QuestionId>sample string 1</d2p1:QuestionId>
        <d2p1:flag>3</d2p1:flag>
        <d2p1:position>4</d2p1:position>
      </d2p1:MSMSurveyMonkeyDTO.OptionFlag>
    </d2p1:Choices>
    <d2p1:CorporationCode>sample string 1</d2p1:CorporationCode>
    <d2p1:ExamId>sample string 2</d2p1:ExamId>
    <d2p1:IsStandard>true</d2p1:IsStandard>
    <d2p1:SurveyId>sample string 3</d2p1:SurveyId>
  </jsonObj>
  <message>sample string 2</message>
  <totalCount>3</totalCount>
</AsapResponseOfMSMSurveyMonkeyDTO.MEQuestionnaireOptionFlagDTO9DQd0Pqc>