PUT api/Questions/PutQuestion/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

Question
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

ExternalId

string

None.

Title

string

None.

Text

string

None.

Level

integer

None.

Image

BinaryStorage

None.

Category

QuestionCategory

None.

Answers

Collection of QuestionAnswer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "cb5c8590-a34f-4320-a1f6-61c46bafe18a",
  "ExternalId": "sample string 2",
  "Title": "sample string 3",
  "Text": "sample string 4",
  "Level": 5,
  "Image": {
    "Id": "52259c31-67c4-4643-b603-ed706eb21448",
    "ImageFileType": "sample string 2",
    "ImageData": "QEA="
  },
  "Category": {
    "Id": "601c02f2-8fab-4be9-b089-0724a9587b66",
    "ShortName": "sample string 2",
    "Name": "sample string 3"
  },
  "Answers": [
    {
      "Id": "918083be-f77c-41f2-802c-c13d2f62d826",
      "Text": "sample string 2",
      "Image": {
        "Id": "52259c31-67c4-4643-b603-ed706eb21448",
        "ImageFileType": "sample string 2",
        "ImageData": "QEA="
      },
      "IsCorrect": true
    },
    {
      "Id": "918083be-f77c-41f2-802c-c13d2f62d826",
      "Text": "sample string 2",
      "Image": {
        "Id": "52259c31-67c4-4643-b603-ed706eb21448",
        "ImageFileType": "sample string 2",
        "ImageData": "QEA="
      },
      "IsCorrect": true
    }
  ]
}

application/xml, text/xml

Sample:
<Question xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WIQuest.Web.Data">
  <Answers>
    <QuestionAnswer>
      <Id>918083be-f77c-41f2-802c-c13d2f62d826</Id>
      <Image>
        <Id>52259c31-67c4-4643-b603-ed706eb21448</Id>
        <ImageData>QEA=</ImageData>
        <ImageFileType>sample string 2</ImageFileType>
      </Image>
      <IsCorrect>true</IsCorrect>
      <Text>sample string 2</Text>
    </QuestionAnswer>
    <QuestionAnswer>
      <Id>918083be-f77c-41f2-802c-c13d2f62d826</Id>
      <Image>
        <Id>52259c31-67c4-4643-b603-ed706eb21448</Id>
        <ImageData>QEA=</ImageData>
        <ImageFileType>sample string 2</ImageFileType>
      </Image>
      <IsCorrect>true</IsCorrect>
      <Text>sample string 2</Text>
    </QuestionAnswer>
  </Answers>
  <Category>
    <Id>601c02f2-8fab-4be9-b089-0724a9587b66</Id>
    <Name>sample string 3</Name>
    <ShortName>sample string 2</ShortName>
  </Category>
  <ExternalId>sample string 2</ExternalId>
  <Id>cb5c8590-a34f-4320-a1f6-61c46bafe18a</Id>
  <Image>
    <Id>52259c31-67c4-4643-b603-ed706eb21448</Id>
    <ImageData>QEA=</ImageData>
    <ImageFileType>sample string 2</ImageFileType>
  </Image>
  <Level>5</Level>
  <Text>sample string 4</Text>
  <Title>sample string 3</Title>
</Question>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.