POST api/v1/instruments/instrumentType
Request Information
URI Parameters
None.
Body Parameters
InstrumentTypeModel| Name | Description | Type | Additional 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:
Response Information
Resource Description
InstrumentTypeModel| Name | Description | Type | Additional 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>