DELETE api/Questions/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

None.

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": "8111ee69-d675-4b36-8d04-a346b0374a8d",
  "ExternalId": "sample string 2",
  "Title": "sample string 3",
  "Text": "sample string 4",
  "Level": 5,
  "Image": {
    "Id": "ec397431-5ef6-4378-93e2-22c6570142f0",
    "ImageFileType": "sample string 2",
    "ImageData": "QEA="
  },
  "Category": {
    "Id": "34fae2d5-df41-4075-9dc0-959c3442fc3e",
    "ShortName": "sample string 2",
    "Name": "sample string 3"
  },
  "Answers": [
    {
      "Id": "05b7e280-a618-424e-bd1b-36d83f723720",
      "Text": "sample string 2",
      "Image": {
        "Id": "ec397431-5ef6-4378-93e2-22c6570142f0",
        "ImageFileType": "sample string 2",
        "ImageData": "QEA="
      },
      "IsCorrect": true
    },
    {
      "Id": "05b7e280-a618-424e-bd1b-36d83f723720",
      "Text": "sample string 2",
      "Image": {
        "Id": "ec397431-5ef6-4378-93e2-22c6570142f0",
        "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>05b7e280-a618-424e-bd1b-36d83f723720</Id>
      <Image>
        <Id>ec397431-5ef6-4378-93e2-22c6570142f0</Id>
        <ImageData>QEA=</ImageData>
        <ImageFileType>sample string 2</ImageFileType>
      </Image>
      <IsCorrect>true</IsCorrect>
      <Text>sample string 2</Text>
    </QuestionAnswer>
    <QuestionAnswer>
      <Id>05b7e280-a618-424e-bd1b-36d83f723720</Id>
      <Image>
        <Id>ec397431-5ef6-4378-93e2-22c6570142f0</Id>
        <ImageData>QEA=</ImageData>
        <ImageFileType>sample string 2</ImageFileType>
      </Image>
      <IsCorrect>true</IsCorrect>
      <Text>sample string 2</Text>
    </QuestionAnswer>
  </Answers>
  <Category>
    <Id>34fae2d5-df41-4075-9dc0-959c3442fc3e</Id>
    <Name>sample string 3</Name>
    <ShortName>sample string 2</ShortName>
  </Category>
  <ExternalId>sample string 2</ExternalId>
  <Id>8111ee69-d675-4b36-8d04-a346b0374a8d</Id>
  <Image>
    <Id>ec397431-5ef6-4378-93e2-22c6570142f0</Id>
    <ImageData>QEA=</ImageData>
    <ImageFileType>sample string 2</ImageFileType>
  </Image>
  <Level>5</Level>
  <Text>sample string 4</Text>
  <Title>sample string 3</Title>
</Question>