PUT api/test/question/update/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

TestV2QuestionsDTOW
NameDescriptionTypeAdditional information
test_id

integer

Required

description

string

Required

options

integer

Required

has_image

boolean

Required

doc_file_upload

Collection of byte

None.

doc_name

string

Max length: 100

doc_extension

string

Max length: 100

doc_size

decimal number

None.

ranking

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "test_id": 1,
  "description": "sample string 2",
  "options": 3,
  "has_image": true,
  "doc_file_upload": "QEA=",
  "doc_name": "sample string 5",
  "doc_extension": "sample string 6",
  "doc_size": 1.0,
  "ranking": 1
}

application/xml, text/xml

Sample:
<TestV2QuestionsDTOW xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Xceed365EngageApi.core.DTOs.Writable">
  <description>sample string 2</description>
  <doc_extension>sample string 6</doc_extension>
  <doc_file_upload>QEA=</doc_file_upload>
  <doc_name>sample string 5</doc_name>
  <doc_size>1</doc_size>
  <has_image>true</has_image>
  <options>3</options>
  <ranking>1</ranking>
  <test_id>1</test_id>
</TestV2QuestionsDTOW>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TestV2QuestionsDTOW'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.