POST api/Questions

Request Information

URI Parameters

None.

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": "8641d33c-6d00-48bf-be59-e3381b784ccd",
  "ExternalId": "sample string 2",
  "Title": "sample string 3",
  "Text": "sample string 4",
  "Level": 5,
  "Image": {
    "Id": "a3d0f166-7f20-4c8b-be37-f6bf7bb87159",
    "ImageFileType": "sample string 2",
    "ImageData": "QEA="
  },
  "Category": {
    "Id": "3541e2a9-e7a2-46f3-b608-b58c6b634e0f",
    "ShortName": "sample string 2",
    "Name": "sample string 3"
  },
  "Answers": [
    {
      "Id": "06ca30af-c06f-4315-87fb-8257d3ba0c6e",
      "Text": "sample string 2",
      "Image": {
        "Id": "a3d0f166-7f20-4c8b-be37-f6bf7bb87159",
        "ImageFileType": "sample string 2",
        "ImageData": "QEA="
      },
      "IsCorrect": true
    },
    {
      "Id": "06ca30af-c06f-4315-87fb-8257d3ba0c6e",
      "Text": "sample string 2",
      "Image": {
        "Id": "a3d0f166-7f20-4c8b-be37-f6bf7bb87159",
        "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>06ca30af-c06f-4315-87fb-8257d3ba0c6e</Id>
      <Image>
        <Id>a3d0f166-7f20-4c8b-be37-f6bf7bb87159</Id>
        <ImageData>QEA=</ImageData>
        <ImageFileType>sample string 2</ImageFileType>
      </Image>
      <IsCorrect>true</IsCorrect>
      <Text>sample string 2</Text>
    </QuestionAnswer>
    <QuestionAnswer>
      <Id>06ca30af-c06f-4315-87fb-8257d3ba0c6e</Id>
      <Image>
        <Id>a3d0f166-7f20-4c8b-be37-f6bf7bb87159</Id>
        <ImageData>QEA=</ImageData>
        <ImageFileType>sample string 2</ImageFileType>
      </Image>
      <IsCorrect>true</IsCorrect>
      <Text>sample string 2</Text>
    </QuestionAnswer>
  </Answers>
  <Category>
    <Id>3541e2a9-e7a2-46f3-b608-b58c6b634e0f</Id>
    <Name>sample string 3</Name>
    <ShortName>sample string 2</ShortName>
  </Category>
  <ExternalId>sample string 2</ExternalId>
  <Id>8641d33c-6d00-48bf-be59-e3381b784ccd</Id>
  <Image>
    <Id>a3d0f166-7f20-4c8b-be37-f6bf7bb87159</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

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.

Response Formats

application/json, text/json

Sample:
{
  "Id": "c8737f7d-9c7e-4f27-b4b1-84335dfdbd81",
  "ExternalId": "sample string 2",
  "Title": "sample string 3",
  "Text": "sample string 4",
  "Level": 5,
  "Image": {
    "Id": "fca1eba4-95b5-4045-a7fa-204bba3c05a5",
    "ImageFileType": "sample string 2",
    "ImageData": "QEA="
  },
  "Category": {
    "Id": "337f252e-c9e5-44fd-8345-f674569c4a8e",
    "ShortName": "sample string 2",
    "Name": "sample string 3"
  },
  "Answers": [
    {
      "Id": "9cddb35e-5947-4704-a94f-0f5403bd4200",
      "Text": "sample string 2",
      "Image": {
        "Id": "fca1eba4-95b5-4045-a7fa-204bba3c05a5",
        "ImageFileType": "sample string 2",
        "ImageData": "QEA="
      },
      "IsCorrect": true
    },
    {
      "Id": "9cddb35e-5947-4704-a94f-0f5403bd4200",
      "Text": "sample string 2",
      "Image": {
        "Id": "fca1eba4-95b5-4045-a7fa-204bba3c05a5",
        "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>9cddb35e-5947-4704-a94f-0f5403bd4200</Id>
      <Image>
        <Id>fca1eba4-95b5-4045-a7fa-204bba3c05a5</Id>
        <ImageData>QEA=</ImageData>
        <ImageFileType>sample string 2</ImageFileType>
      </Image>
      <IsCorrect>true</IsCorrect>
      <Text>sample string 2</Text>
    </QuestionAnswer>
    <QuestionAnswer>
      <Id>9cddb35e-5947-4704-a94f-0f5403bd4200</Id>
      <Image>
        <Id>fca1eba4-95b5-4045-a7fa-204bba3c05a5</Id>
        <ImageData>QEA=</ImageData>
        <ImageFileType>sample string 2</ImageFileType>
      </Image>
      <IsCorrect>true</IsCorrect>
      <Text>sample string 2</Text>
    </QuestionAnswer>
  </Answers>
  <Category>
    <Id>337f252e-c9e5-44fd-8345-f674569c4a8e</Id>
    <Name>sample string 3</Name>
    <ShortName>sample string 2</ShortName>
  </Category>
  <ExternalId>sample string 2</ExternalId>
  <Id>c8737f7d-9c7e-4f27-b4b1-84335dfdbd81</Id>
  <Image>
    <Id>fca1eba4-95b5-4045-a7fa-204bba3c05a5</Id>
    <ImageData>QEA=</ImageData>
    <ImageFileType>sample string 2</ImageFileType>
  </Image>
  <Level>5</Level>
  <Text>sample string 4</Text>
  <Title>sample string 3</Title>
</Question>