POST api/v1/general/insertInstrument

Request Information

URI Parameters

None.

Body Parameters

InsertInstrumentInventoryModel
NameDescriptionTypeAdditional information
InstrumentInventory

InstrumentInventoryModel

None.

ManufacturerName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "InstrumentInventory": {
    "Id": 1,
    "OperatorId": 2,
    "InstrumentModelId": 3,
    "Sku": "sample string 4",
    "CurrentStudentId": 1,
    "Status": 0,
    "ManufacturerId": 1,
    "Location": "sample string 5"
  },
  "ManufacturerName": "sample string 1"
}

application/xml, text/xml

Sample:
<InsertInstrumentInventoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <InstrumentInventory>
    <CurrentStudentId>1</CurrentStudentId>
    <Id>1</Id>
    <InstrumentModelId>3</InstrumentModelId>
    <Location>sample string 5</Location>
    <ManufacturerId>1</ManufacturerId>
    <OperatorId>2</OperatorId>
    <Sku>sample string 4</Sku>
    <Status>Loaned</Status>
  </InstrumentInventory>
  <ManufacturerName>sample string 1</ManufacturerName>
</InsertInstrumentInventoryModel>

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

Response Information

Resource Description

InsertInstrumentResultModel
NameDescriptionTypeAdditional information
InstrumentId

integer

None.

ManufacturerId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "InstrumentId": 1,
  "ManufacturerId": 1
}

application/xml, text/xml

Sample:
<InsertInstrumentResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <InstrumentId>1</InstrumentId>
  <ManufacturerId>1</ManufacturerId>
</InsertInstrumentResultModel>