POST api/v1/instruments/instrumentType

Request Information

URI Parameters

None.

Body Parameters

InstrumentTypeModel
NameDescriptionTypeAdditional information
Id

integer

None.

CreatedByOperatorId

integer

None.

Name

string

Required

Max length: 100

IsPublic

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CreatedByOperatorId": 2,
  "Name": "sample string 3",
  "IsPublic": true
}

application/xml, text/xml

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

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

Response Information

Resource Description

InstrumentTypeModel
NameDescriptionTypeAdditional information
Id

integer

None.

CreatedByOperatorId

integer

None.

Name

string

Required

Max length: 100

IsPublic

boolean

Required

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CreatedByOperatorId": 2,
  "Name": "sample string 3",
  "IsPublic": true
}

application/xml, text/xml

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