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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

TestV2DefinitionDTOW
NameDescriptionTypeAdditional information
code

string

Required

Max length: 100

description

string

Required

instructions

string

Required

randomize_questions

boolean

Required

fixed_questions

boolean

Required

is_timed

boolean

Required

total_time_mins

integer

None.

allow_review

boolean

Required

show_final_score

boolean

Required

cut_off_mark

decimal number

None.

category

integer

Required

has_document

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.

test_format

integer

Required

total_score_possible

decimal number

None.

final_score_format

integer

Required

retake

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "description": "sample string 2",
  "instructions": "sample string 3",
  "randomize_questions": true,
  "fixed_questions": true,
  "is_timed": true,
  "total_time_mins": 1,
  "allow_review": true,
  "show_final_score": true,
  "cut_off_mark": 1.0,
  "category": 9,
  "has_document": true,
  "doc_file_upload": "QEA=",
  "doc_name": "sample string 11",
  "doc_extension": "sample string 12",
  "doc_size": 1.0,
  "test_format": 13,
  "total_score_possible": 1.0,
  "final_score_format": 14,
  "retake": 1
}

application/xml, text/xml

Sample:
<TestV2DefinitionDTOW xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Xceed365EngageApi.core.DTOs.Writable">
  <allow_review>true</allow_review>
  <category>9</category>
  <code>sample string 1</code>
  <cut_off_mark>1</cut_off_mark>
  <description>sample string 2</description>
  <doc_extension>sample string 12</doc_extension>
  <doc_file_upload>QEA=</doc_file_upload>
  <doc_name>sample string 11</doc_name>
  <doc_size>1</doc_size>
  <final_score_format>14</final_score_format>
  <fixed_questions>true</fixed_questions>
  <has_document>true</has_document>
  <instructions>sample string 3</instructions>
  <is_timed>true</is_timed>
  <randomize_questions>true</randomize_questions>
  <retake>1</retake>
  <show_final_score>true</show_final_score>
  <test_format>13</test_format>
  <total_score_possible>1</total_score_possible>
  <total_time_mins>1</total_time_mins>
</TestV2DefinitionDTOW>

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 'TestV2DefinitionDTOW'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.