POST InstrumentTypesAPI/AddInstrumentType

Request Information

URI Parameters

None.

Body Parameters

InstrumentTypes
NameDescriptionTypeAdditional information
InstrumentTypeID

integer

None.

Active

boolean

None.

InstrumentTypeName

string

None.

Family

string

None.

SubFamily

string

None.

Department

string

None.

Comments

string

None.

MinAge

integer

None.

MaxAge

integer

None.

ExamType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "InstrumentTypeID": 1,
  "Active": true,
  "InstrumentTypeName": "sample string 3",
  "Family": "sample string 4",
  "SubFamily": "sample string 5",
  "Department": "sample string 6",
  "Comments": "sample string 7",
  "MinAge": 8,
  "MaxAge": 9,
  "ExamType": "sample string 10"
}

application/xml, text/xml

Sample:
<InstrumentTypes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QMA2020.Models">
  <Active>true</Active>
  <Comments>sample string 7</Comments>
  <Department>sample string 6</Department>
  <ExamType>sample string 10</ExamType>
  <Family>sample string 4</Family>
  <InstrumentTypeID>1</InstrumentTypeID>
  <InstrumentTypeName>sample string 3</InstrumentTypeName>
  <MaxAge>9</MaxAge>
  <MinAge>8</MinAge>
  <SubFamily>sample string 5</SubFamily>
</InstrumentTypes>

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

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>