POST api/questionnaire/UpdateQuestTemplate?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

questionnaireTemplate
NameDescriptionTypeAdditional information
_id

ObjectId

None.

QuestName

string

None.

active

boolean

None.

customerId

integer

None.

tabs

Collection of TabsTemplate

None.

CreationTime

date

None.

updationTime

date

None.

updateBy

string

None.

emailagree

boolean

None.

digitalSignatureRequired

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "_id": "000000000000000000000000",
  "QuestName": "sample string 1",
  "active": true,
  "customerId": 3,
  "tabs": [
    {
      "name": "sample string 1",
      "categories": [
        {
          "name": "sample string 1",
          "questions": [
            null,
            {
              "Id": "000000000000000000000000",
              "name": null,
              "isRequired": false,
              "type": "dropdown",
              "isVisible": false,
              "visibleIf": null,
              "validator": null,
              "withUnknown": false,
              "itemsSelect": null,
              "optionRR": null,
              "answer": null,
              "multipleAnswers": null,
              "answerValue": null
            }
          ]
        },
        {
          "name": "sample string 1",
          "questions": [
            null,
            {
              "Id": "000000000000000000000000",
              "name": null,
              "isRequired": false,
              "type": "dropdown",
              "isVisible": false,
              "visibleIf": null,
              "validator": null,
              "withUnknown": false,
              "itemsSelect": null,
              "optionRR": null,
              "answer": null,
              "multipleAnswers": null,
              "answerValue": null
            }
          ]
        }
      ]
    },
    {
      "name": "sample string 1",
      "categories": [
        {
          "name": "sample string 1",
          "questions": [
            null,
            {
              "Id": "000000000000000000000000",
              "name": null,
              "isRequired": false,
              "type": "dropdown",
              "isVisible": false,
              "visibleIf": null,
              "validator": null,
              "withUnknown": false,
              "itemsSelect": null,
              "optionRR": null,
              "answer": null,
              "multipleAnswers": null,
              "answerValue": null
            }
          ]
        },
        {
          "name": "sample string 1",
          "questions": [
            null,
            {
              "Id": "000000000000000000000000",
              "name": null,
              "isRequired": false,
              "type": "dropdown",
              "isVisible": false,
              "visibleIf": null,
              "validator": null,
              "withUnknown": false,
              "itemsSelect": null,
              "optionRR": null,
              "answer": null,
              "multipleAnswers": null,
              "answerValue": null
            }
          ]
        }
      ]
    }
  ],
  "CreationTime": "2019-10-18T01:35:25.4945259+03:00",
  "updationTime": "2019-10-18T01:35:25.4945259+03:00",
  "updateBy": "sample string 6",
  "emailagree": true,
  "digitalSignatureRequired": true
}

application/xml, text/xml

Sample:
<questionnaireTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical">
  <CreationTime>2019-10-18T01:35:25.4945259+03:00</CreationTime>
  <QuestName>sample string 1</QuestName>
  <_id xmlns:d2p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
    <d2p1:_a>0</d2p1:_a>
    <d2p1:_b>0</d2p1:_b>
    <d2p1:_c>0</d2p1:_c>
  </_id>
  <active>true</active>
  <customerId>3</customerId>
  <digitalSignatureRequired>true</digitalSignatureRequired>
  <emailagree>true</emailagree>
  <tabs>
    <TabsTemplate>
      <categories>
        <CategoryTemplate>
          <name>sample string 1</name>
          <questions>
            <questionTemplate i:nil="true" />
            <questionTemplate>
              <Id>000000000000000000000000</Id>
              <answer i:nil="true" />
              <answerValue i:nil="true" />
              <isRequired>false</isRequired>
              <isVisible>false</isVisible>
              <itemsSelect xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <multipleAnswers xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <name i:nil="true" />
              <optionRR i:nil="true" />
              <type>dropdown</type>
              <validator i:nil="true" />
              <visibleIf i:nil="true" />
              <withUnknown>false</withUnknown>
            </questionTemplate>
          </questions>
        </CategoryTemplate>
        <CategoryTemplate>
          <name>sample string 1</name>
          <questions>
            <questionTemplate i:nil="true" />
            <questionTemplate>
              <Id>000000000000000000000000</Id>
              <answer i:nil="true" />
              <answerValue i:nil="true" />
              <isRequired>false</isRequired>
              <isVisible>false</isVisible>
              <itemsSelect xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <multipleAnswers xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <name i:nil="true" />
              <optionRR i:nil="true" />
              <type>dropdown</type>
              <validator i:nil="true" />
              <visibleIf i:nil="true" />
              <withUnknown>false</withUnknown>
            </questionTemplate>
          </questions>
        </CategoryTemplate>
      </categories>
      <name>sample string 1</name>
    </TabsTemplate>
    <TabsTemplate>
      <categories>
        <CategoryTemplate>
          <name>sample string 1</name>
          <questions>
            <questionTemplate i:nil="true" />
            <questionTemplate>
              <Id>000000000000000000000000</Id>
              <answer i:nil="true" />
              <answerValue i:nil="true" />
              <isRequired>false</isRequired>
              <isVisible>false</isVisible>
              <itemsSelect xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <multipleAnswers xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <name i:nil="true" />
              <optionRR i:nil="true" />
              <type>dropdown</type>
              <validator i:nil="true" />
              <visibleIf i:nil="true" />
              <withUnknown>false</withUnknown>
            </questionTemplate>
          </questions>
        </CategoryTemplate>
        <CategoryTemplate>
          <name>sample string 1</name>
          <questions>
            <questionTemplate i:nil="true" />
            <questionTemplate>
              <Id>000000000000000000000000</Id>
              <answer i:nil="true" />
              <answerValue i:nil="true" />
              <isRequired>false</isRequired>
              <isVisible>false</isVisible>
              <itemsSelect xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <multipleAnswers xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <name i:nil="true" />
              <optionRR i:nil="true" />
              <type>dropdown</type>
              <validator i:nil="true" />
              <visibleIf i:nil="true" />
              <withUnknown>false</withUnknown>
            </questionTemplate>
          </questions>
        </CategoryTemplate>
      </categories>
      <name>sample string 1</name>
    </TabsTemplate>
  </tabs>
  <updateBy>sample string 6</updateBy>
  <updationTime>2019-10-18T01:35:25.4945259+03:00</updationTime>
</questionnaireTemplate>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

questionnaireTemplate
NameDescriptionTypeAdditional information
_id

ObjectId

None.

QuestName

string

None.

active

boolean

None.

customerId

integer

None.

tabs

Collection of TabsTemplate

None.

CreationTime

date

None.

updationTime

date

None.

updateBy

string

None.

emailagree

boolean

None.

digitalSignatureRequired

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "_id": "000000000000000000000000",
  "QuestName": "sample string 1",
  "active": true,
  "customerId": 3,
  "tabs": [
    {
      "name": "sample string 1",
      "categories": [
        {
          "name": "sample string 1",
          "questions": [
            null,
            {
              "Id": "000000000000000000000000",
              "name": null,
              "isRequired": false,
              "type": "dropdown",
              "isVisible": false,
              "visibleIf": null,
              "validator": null,
              "withUnknown": false,
              "itemsSelect": null,
              "optionRR": null,
              "answer": null,
              "multipleAnswers": null,
              "answerValue": null
            }
          ]
        },
        {
          "name": "sample string 1",
          "questions": [
            null,
            {
              "Id": "000000000000000000000000",
              "name": null,
              "isRequired": false,
              "type": "dropdown",
              "isVisible": false,
              "visibleIf": null,
              "validator": null,
              "withUnknown": false,
              "itemsSelect": null,
              "optionRR": null,
              "answer": null,
              "multipleAnswers": null,
              "answerValue": null
            }
          ]
        }
      ]
    },
    {
      "name": "sample string 1",
      "categories": [
        {
          "name": "sample string 1",
          "questions": [
            null,
            {
              "Id": "000000000000000000000000",
              "name": null,
              "isRequired": false,
              "type": "dropdown",
              "isVisible": false,
              "visibleIf": null,
              "validator": null,
              "withUnknown": false,
              "itemsSelect": null,
              "optionRR": null,
              "answer": null,
              "multipleAnswers": null,
              "answerValue": null
            }
          ]
        },
        {
          "name": "sample string 1",
          "questions": [
            null,
            {
              "Id": "000000000000000000000000",
              "name": null,
              "isRequired": false,
              "type": "dropdown",
              "isVisible": false,
              "visibleIf": null,
              "validator": null,
              "withUnknown": false,
              "itemsSelect": null,
              "optionRR": null,
              "answer": null,
              "multipleAnswers": null,
              "answerValue": null
            }
          ]
        }
      ]
    }
  ],
  "CreationTime": "2019-10-18T01:35:25.5257953+03:00",
  "updationTime": "2019-10-18T01:35:25.5257953+03:00",
  "updateBy": "sample string 6",
  "emailagree": true,
  "digitalSignatureRequired": true
}

application/xml, text/xml

Sample:
<questionnaireTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical">
  <CreationTime>2019-10-18T01:35:25.5257953+03:00</CreationTime>
  <QuestName>sample string 1</QuestName>
  <_id xmlns:d2p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
    <d2p1:_a>0</d2p1:_a>
    <d2p1:_b>0</d2p1:_b>
    <d2p1:_c>0</d2p1:_c>
  </_id>
  <active>true</active>
  <customerId>3</customerId>
  <digitalSignatureRequired>true</digitalSignatureRequired>
  <emailagree>true</emailagree>
  <tabs>
    <TabsTemplate>
      <categories>
        <CategoryTemplate>
          <name>sample string 1</name>
          <questions>
            <questionTemplate i:nil="true" />
            <questionTemplate>
              <Id>000000000000000000000000</Id>
              <answer i:nil="true" />
              <answerValue i:nil="true" />
              <isRequired>false</isRequired>
              <isVisible>false</isVisible>
              <itemsSelect xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <multipleAnswers xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <name i:nil="true" />
              <optionRR i:nil="true" />
              <type>dropdown</type>
              <validator i:nil="true" />
              <visibleIf i:nil="true" />
              <withUnknown>false</withUnknown>
            </questionTemplate>
          </questions>
        </CategoryTemplate>
        <CategoryTemplate>
          <name>sample string 1</name>
          <questions>
            <questionTemplate i:nil="true" />
            <questionTemplate>
              <Id>000000000000000000000000</Id>
              <answer i:nil="true" />
              <answerValue i:nil="true" />
              <isRequired>false</isRequired>
              <isVisible>false</isVisible>
              <itemsSelect xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <multipleAnswers xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <name i:nil="true" />
              <optionRR i:nil="true" />
              <type>dropdown</type>
              <validator i:nil="true" />
              <visibleIf i:nil="true" />
              <withUnknown>false</withUnknown>
            </questionTemplate>
          </questions>
        </CategoryTemplate>
      </categories>
      <name>sample string 1</name>
    </TabsTemplate>
    <TabsTemplate>
      <categories>
        <CategoryTemplate>
          <name>sample string 1</name>
          <questions>
            <questionTemplate i:nil="true" />
            <questionTemplate>
              <Id>000000000000000000000000</Id>
              <answer i:nil="true" />
              <answerValue i:nil="true" />
              <isRequired>false</isRequired>
              <isVisible>false</isVisible>
              <itemsSelect xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <multipleAnswers xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <name i:nil="true" />
              <optionRR i:nil="true" />
              <type>dropdown</type>
              <validator i:nil="true" />
              <visibleIf i:nil="true" />
              <withUnknown>false</withUnknown>
            </questionTemplate>
          </questions>
        </CategoryTemplate>
        <CategoryTemplate>
          <name>sample string 1</name>
          <questions>
            <questionTemplate i:nil="true" />
            <questionTemplate>
              <Id>000000000000000000000000</Id>
              <answer i:nil="true" />
              <answerValue i:nil="true" />
              <isRequired>false</isRequired>
              <isVisible>false</isVisible>
              <itemsSelect xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <multipleAnswers xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
              <name i:nil="true" />
              <optionRR i:nil="true" />
              <type>dropdown</type>
              <validator i:nil="true" />
              <visibleIf i:nil="true" />
              <withUnknown>false</withUnknown>
            </questionTemplate>
          </questions>
        </CategoryTemplate>
      </categories>
      <name>sample string 1</name>
    </TabsTemplate>
  </tabs>
  <updateBy>sample string 6</updateBy>
  <updationTime>2019-10-18T01:35:25.5257953+03:00</updationTime>
</questionnaireTemplate>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.