POST api/v2/sampletypes/{sampleTypeId}/infos
Request
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| sampleTypeId | integer |
Required |
Body Parameters
SampleTypeInfoNew| Name | Description | Type | Additional information |
|---|---|---|---|
| InfoId | integer | ||
| InfoTypeId | integer | ||
| MeasurementUnitId | integer | ||
| DisplayValue | string | ||
| ForceScale | integer | ||
| ForceSignifDigits | integer | ||
| ValueText | string | ||
| ValueInteger | integer | ||
| ValueFloat | decimal number | ||
| ValueDateTime | date | ||
| ValueBoolean | boolean | ||
| ValueAccountId | integer | ||
| DependentInfoId | integer | ||
| Inherited | boolean | ||
| RequiredValue | boolean | ||
| Order | integer | ||
| InfoGroupId | integer | ||
| ReadOnlyValue | boolean |
Request Formats
application/json, text/json
Sample:
{
"InfoId": 1,
"InfoTypeId": 2,
"MeasurementUnitId": 1,
"DisplayValue": "sample string 3",
"ForceScale": 1,
"ForceSignifDigits": 1,
"ValueText": "sample string 4",
"ValueInteger": 1,
"ValueFloat": 1.1,
"ValueDateTime": "2026-02-02T21:07:37.0709796Z",
"ValueBoolean": true,
"ValueAccountId": 1,
"DependentInfoId": 1,
"Inherited": true,
"RequiredValue": true,
"Order": 7,
"InfoGroupId": 1,
"ReadOnlyValue": true
}
text/html
Sample:
{"InfoId":1,"InfoTypeId":2,"MeasurementUnitId":1,"DisplayValue":"sample string 3","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 4","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2026-02-02T21:07:37.0709796Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7,"InfoGroupId":1,"ReadOnlyValue":true}
Response
integerResponse Format
application/json, text/json, text/html
Sample:
1