POST api/v1/instruments/instrumentModel

Request Information

URI Parameters

None.

Body Parameters

InstrumentModelsModel
NameDescriptionTypeAdditional information
Id

integer

None.

InstrumentTypeId

integer

None.

Name

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "InstrumentTypeId": 2,
  "Name": "sample string 3"
}

application/xml, text/xml

Sample:
<InstrumentModelsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <Id>1</Id>
  <InstrumentTypeId>2</InstrumentTypeId>
  <Name>sample string 3</Name>
</InstrumentModelsModel>

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

Response Information

Resource Description

InstrumentModelsModel
NameDescriptionTypeAdditional information
Id

integer

None.

InstrumentTypeId

integer

None.

Name

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "InstrumentTypeId": 2,
  "Name": "sample string 3"
}

application/xml, text/xml

Sample:
<InstrumentModelsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <Id>1</Id>
  <InstrumentTypeId>2</InstrumentTypeId>
  <Name>sample string 3</Name>
</InstrumentModelsModel>