PUT api/Quizzes/PutQuiz/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

Quiz
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

None.

Description

string

None.

Sections

Collection of QuizSection

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "c4f45d22-b6d5-49f4-83e6-e4b17bf718e9",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "Sections": [
    {
      "Id": "716dd065-2b50-4531-8ce8-f3e0092368bd",
      "Name": "sample string 2",
      "Description": "sample string 3",
      "Order": 4,
      "Questions": [
        {
          "Id": "e2329770-0ee6-4911-8efb-f8995f47b947",
          "Question": {
            "Id": "1d92f5ae-67a4-4004-94f0-e52136db192c",
            "ExternalId": "sample string 2",
            "Title": "sample string 3",
            "Text": "sample string 4",
            "Level": 5,
            "Image": {
              "Id": "566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5",
              "ImageFileType": "sample string 2",
              "ImageData": "QEA="
            },
            "Category": {
              "Id": "4d550442-6054-4ef1-8f90-a8e329e6bd70",
              "ShortName": "sample string 2",
              "Name": "sample string 3"
            },
            "Answers": [
              {
                "Id": "163447d0-dba1-4685-8ddb-e1b7821779ac",
                "Text": "sample string 2",
                "Image": {
                  "Id": "566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5",
                  "ImageFileType": "sample string 2",
                  "ImageData": "QEA="
                },
                "IsCorrect": true
              },
              {
                "Id": "163447d0-dba1-4685-8ddb-e1b7821779ac",
                "Text": "sample string 2",
                "Image": {
                  "Id": "566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5",
                  "ImageFileType": "sample string 2",
                  "ImageData": "QEA="
                },
                "IsCorrect": true
              }
            ]
          },
          "Order": 2
        },
        {
          "Id": "e2329770-0ee6-4911-8efb-f8995f47b947",
          "Question": {
            "Id": "1d92f5ae-67a4-4004-94f0-e52136db192c",
            "ExternalId": "sample string 2",
            "Title": "sample string 3",
            "Text": "sample string 4",
            "Level": 5,
            "Image": {
              "Id": "566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5",
              "ImageFileType": "sample string 2",
              "ImageData": "QEA="
            },
            "Category": {
              "Id": "4d550442-6054-4ef1-8f90-a8e329e6bd70",
              "ShortName": "sample string 2",
              "Name": "sample string 3"
            },
            "Answers": [
              {
                "Id": "163447d0-dba1-4685-8ddb-e1b7821779ac",
                "Text": "sample string 2",
                "Image": {
                  "Id": "566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5",
                  "ImageFileType": "sample string 2",
                  "ImageData": "QEA="
                },
                "IsCorrect": true
              },
              {
                "Id": "163447d0-dba1-4685-8ddb-e1b7821779ac",
                "Text": "sample string 2",
                "Image": {
                  "Id": "566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5",
                  "ImageFileType": "sample string 2",
                  "ImageData": "QEA="
                },
                "IsCorrect": true
              }
            ]
          },
          "Order": 2
        }
      ]
    },
    {
      "Id": "716dd065-2b50-4531-8ce8-f3e0092368bd",
      "Name": "sample string 2",
      "Description": "sample string 3",
      "Order": 4,
      "Questions": [
        {
          "Id": "e2329770-0ee6-4911-8efb-f8995f47b947",
          "Question": {
            "Id": "1d92f5ae-67a4-4004-94f0-e52136db192c",
            "ExternalId": "sample string 2",
            "Title": "sample string 3",
            "Text": "sample string 4",
            "Level": 5,
            "Image": {
              "Id": "566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5",
              "ImageFileType": "sample string 2",
              "ImageData": "QEA="
            },
            "Category": {
              "Id": "4d550442-6054-4ef1-8f90-a8e329e6bd70",
              "ShortName": "sample string 2",
              "Name": "sample string 3"
            },
            "Answers": [
              {
                "Id": "163447d0-dba1-4685-8ddb-e1b7821779ac",
                "Text": "sample string 2",
                "Image": {
                  "Id": "566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5",
                  "ImageFileType": "sample string 2",
                  "ImageData": "QEA="
                },
                "IsCorrect": true
              },
              {
                "Id": "163447d0-dba1-4685-8ddb-e1b7821779ac",
                "Text": "sample string 2",
                "Image": {
                  "Id": "566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5",
                  "ImageFileType": "sample string 2",
                  "ImageData": "QEA="
                },
                "IsCorrect": true
              }
            ]
          },
          "Order": 2
        },
        {
          "Id": "e2329770-0ee6-4911-8efb-f8995f47b947",
          "Question": {
            "Id": "1d92f5ae-67a4-4004-94f0-e52136db192c",
            "ExternalId": "sample string 2",
            "Title": "sample string 3",
            "Text": "sample string 4",
            "Level": 5,
            "Image": {
              "Id": "566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5",
              "ImageFileType": "sample string 2",
              "ImageData": "QEA="
            },
            "Category": {
              "Id": "4d550442-6054-4ef1-8f90-a8e329e6bd70",
              "ShortName": "sample string 2",
              "Name": "sample string 3"
            },
            "Answers": [
              {
                "Id": "163447d0-dba1-4685-8ddb-e1b7821779ac",
                "Text": "sample string 2",
                "Image": {
                  "Id": "566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5",
                  "ImageFileType": "sample string 2",
                  "ImageData": "QEA="
                },
                "IsCorrect": true
              },
              {
                "Id": "163447d0-dba1-4685-8ddb-e1b7821779ac",
                "Text": "sample string 2",
                "Image": {
                  "Id": "566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5",
                  "ImageFileType": "sample string 2",
                  "ImageData": "QEA="
                },
                "IsCorrect": true
              }
            ]
          },
          "Order": 2
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<Quiz xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WIQuest.Web.Data">
  <Description>sample string 3</Description>
  <Id>c4f45d22-b6d5-49f4-83e6-e4b17bf718e9</Id>
  <Name>sample string 2</Name>
  <Sections>
    <QuizSection>
      <Description>sample string 3</Description>
      <Id>716dd065-2b50-4531-8ce8-f3e0092368bd</Id>
      <Name>sample string 2</Name>
      <Order>4</Order>
      <Questions>
        <QuizQuestion>
          <Id>e2329770-0ee6-4911-8efb-f8995f47b947</Id>
          <Order>2</Order>
          <Question>
            <Answers>
              <QuestionAnswer>
                <Id>163447d0-dba1-4685-8ddb-e1b7821779ac</Id>
                <Image>
                  <Id>566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5</Id>
                  <ImageData>QEA=</ImageData>
                  <ImageFileType>sample string 2</ImageFileType>
                </Image>
                <IsCorrect>true</IsCorrect>
                <Text>sample string 2</Text>
              </QuestionAnswer>
              <QuestionAnswer>
                <Id>163447d0-dba1-4685-8ddb-e1b7821779ac</Id>
                <Image>
                  <Id>566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5</Id>
                  <ImageData>QEA=</ImageData>
                  <ImageFileType>sample string 2</ImageFileType>
                </Image>
                <IsCorrect>true</IsCorrect>
                <Text>sample string 2</Text>
              </QuestionAnswer>
            </Answers>
            <Category>
              <Id>4d550442-6054-4ef1-8f90-a8e329e6bd70</Id>
              <Name>sample string 3</Name>
              <ShortName>sample string 2</ShortName>
            </Category>
            <ExternalId>sample string 2</ExternalId>
            <Id>1d92f5ae-67a4-4004-94f0-e52136db192c</Id>
            <Image>
              <Id>566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5</Id>
              <ImageData>QEA=</ImageData>
              <ImageFileType>sample string 2</ImageFileType>
            </Image>
            <Level>5</Level>
            <Text>sample string 4</Text>
            <Title>sample string 3</Title>
          </Question>
        </QuizQuestion>
        <QuizQuestion>
          <Id>e2329770-0ee6-4911-8efb-f8995f47b947</Id>
          <Order>2</Order>
          <Question>
            <Answers>
              <QuestionAnswer>
                <Id>163447d0-dba1-4685-8ddb-e1b7821779ac</Id>
                <Image>
                  <Id>566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5</Id>
                  <ImageData>QEA=</ImageData>
                  <ImageFileType>sample string 2</ImageFileType>
                </Image>
                <IsCorrect>true</IsCorrect>
                <Text>sample string 2</Text>
              </QuestionAnswer>
              <QuestionAnswer>
                <Id>163447d0-dba1-4685-8ddb-e1b7821779ac</Id>
                <Image>
                  <Id>566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5</Id>
                  <ImageData>QEA=</ImageData>
                  <ImageFileType>sample string 2</ImageFileType>
                </Image>
                <IsCorrect>true</IsCorrect>
                <Text>sample string 2</Text>
              </QuestionAnswer>
            </Answers>
            <Category>
              <Id>4d550442-6054-4ef1-8f90-a8e329e6bd70</Id>
              <Name>sample string 3</Name>
              <ShortName>sample string 2</ShortName>
            </Category>
            <ExternalId>sample string 2</ExternalId>
            <Id>1d92f5ae-67a4-4004-94f0-e52136db192c</Id>
            <Image>
              <Id>566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5</Id>
              <ImageData>QEA=</ImageData>
              <ImageFileType>sample string 2</ImageFileType>
            </Image>
            <Level>5</Level>
            <Text>sample string 4</Text>
            <Title>sample string 3</Title>
          </Question>
        </QuizQuestion>
      </Questions>
    </QuizSection>
    <QuizSection>
      <Description>sample string 3</Description>
      <Id>716dd065-2b50-4531-8ce8-f3e0092368bd</Id>
      <Name>sample string 2</Name>
      <Order>4</Order>
      <Questions>
        <QuizQuestion>
          <Id>e2329770-0ee6-4911-8efb-f8995f47b947</Id>
          <Order>2</Order>
          <Question>
            <Answers>
              <QuestionAnswer>
                <Id>163447d0-dba1-4685-8ddb-e1b7821779ac</Id>
                <Image>
                  <Id>566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5</Id>
                  <ImageData>QEA=</ImageData>
                  <ImageFileType>sample string 2</ImageFileType>
                </Image>
                <IsCorrect>true</IsCorrect>
                <Text>sample string 2</Text>
              </QuestionAnswer>
              <QuestionAnswer>
                <Id>163447d0-dba1-4685-8ddb-e1b7821779ac</Id>
                <Image>
                  <Id>566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5</Id>
                  <ImageData>QEA=</ImageData>
                  <ImageFileType>sample string 2</ImageFileType>
                </Image>
                <IsCorrect>true</IsCorrect>
                <Text>sample string 2</Text>
              </QuestionAnswer>
            </Answers>
            <Category>
              <Id>4d550442-6054-4ef1-8f90-a8e329e6bd70</Id>
              <Name>sample string 3</Name>
              <ShortName>sample string 2</ShortName>
            </Category>
            <ExternalId>sample string 2</ExternalId>
            <Id>1d92f5ae-67a4-4004-94f0-e52136db192c</Id>
            <Image>
              <Id>566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5</Id>
              <ImageData>QEA=</ImageData>
              <ImageFileType>sample string 2</ImageFileType>
            </Image>
            <Level>5</Level>
            <Text>sample string 4</Text>
            <Title>sample string 3</Title>
          </Question>
        </QuizQuestion>
        <QuizQuestion>
          <Id>e2329770-0ee6-4911-8efb-f8995f47b947</Id>
          <Order>2</Order>
          <Question>
            <Answers>
              <QuestionAnswer>
                <Id>163447d0-dba1-4685-8ddb-e1b7821779ac</Id>
                <Image>
                  <Id>566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5</Id>
                  <ImageData>QEA=</ImageData>
                  <ImageFileType>sample string 2</ImageFileType>
                </Image>
                <IsCorrect>true</IsCorrect>
                <Text>sample string 2</Text>
              </QuestionAnswer>
              <QuestionAnswer>
                <Id>163447d0-dba1-4685-8ddb-e1b7821779ac</Id>
                <Image>
                  <Id>566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5</Id>
                  <ImageData>QEA=</ImageData>
                  <ImageFileType>sample string 2</ImageFileType>
                </Image>
                <IsCorrect>true</IsCorrect>
                <Text>sample string 2</Text>
              </QuestionAnswer>
            </Answers>
            <Category>
              <Id>4d550442-6054-4ef1-8f90-a8e329e6bd70</Id>
              <Name>sample string 3</Name>
              <ShortName>sample string 2</ShortName>
            </Category>
            <ExternalId>sample string 2</ExternalId>
            <Id>1d92f5ae-67a4-4004-94f0-e52136db192c</Id>
            <Image>
              <Id>566e3063-06ee-4e3b-b7ce-a1fbadb7bdd5</Id>
              <ImageData>QEA=</ImageData>
              <ImageFileType>sample string 2</ImageFileType>
            </Image>
            <Level>5</Level>
            <Text>sample string 4</Text>
            <Title>sample string 3</Title>
          </Question>
        </QuizQuestion>
      </Questions>
    </QuizSection>
  </Sections>
</Quiz>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.