POST api/v2/sampletypes
Request
URI Parameters
Body Parameters
SampleTypeNew| Name | Description | Type | Additional information |
|---|---|---|---|
| Identification | string | ||
| Active | boolean | ||
| ReferenceKey | string | ||
| RequireTakenDateTime | boolean | ||
| RequireAccount | boolean | ||
| CompatiblewithAllMethodsOfAnalysis | boolean | ||
| Available | boolean | ||
| SyncPortal | boolean | ||
| SampleClassId | integer | ||
| SampleTypeParentId | integer | ||
| InitialStatusId | integer | ||
| SamplePublishTypeId | integer | ||
| SampleReasonId | integer | ||
| QCTypeId | integer | ||
| SampleIdentification | string | ||
| Infos | Collection of SampleTypeInfoNew | ||
| AnalysisGroups | Collection of integer | ||
| Specifications | Collection of integer | ||
| Methods | Collection of integer | ||
| UnrestrictedAccessServiceCenter | boolean |
Request Formats
application/json, text/json
Sample:
{
"Identification": "sample string 1",
"Active": true,
"ReferenceKey": "sample string 3",
"RequireTakenDateTime": true,
"RequireAccount": true,
"CompatiblewithAllMethodsOfAnalysis": true,
"Available": true,
"SyncPortal": true,
"SampleClassId": 1,
"SampleTypeParentId": 1,
"InitialStatusId": 1,
"SamplePublishTypeId": 1,
"SampleReasonId": 1,
"QCTypeId": 1,
"SampleIdentification": "sample string 9",
"Infos": [
{
"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-06-02T16:46:44.0996296Z",
"ValueBoolean": true,
"ValueAccountId": 1,
"DependentInfoId": 1,
"Inherited": true,
"RequiredValue": true,
"Order": 7,
"InfoGroupId": 1,
"ReadOnlyValue": true
},
{
"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-06-02T16:46:44.0996296Z",
"ValueBoolean": true,
"ValueAccountId": 1,
"DependentInfoId": 1,
"Inherited": true,
"RequiredValue": true,
"Order": 7,
"InfoGroupId": 1,
"ReadOnlyValue": true
}
],
"AnalysisGroups": [
1,
2
],
"Specifications": [
1,
2
],
"Methods": [
1,
2
],
"UnrestrictedAccessServiceCenter": true
}
text/html
Sample:
{"Identification":"sample string 1","Active":true,"ReferenceKey":"sample string 3","RequireTakenDateTime":true,"RequireAccount":true,"CompatiblewithAllMethodsOfAnalysis":true,"Available":true,"SyncPortal":true,"SampleClassId":1,"SampleTypeParentId":1,"InitialStatusId":1,"SamplePublishTypeId":1,"SampleReasonId":1,"QCTypeId":1,"SampleIdentification":"sample string 9","Infos":[{"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-06-02T16:46:44.0996296Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7,"InfoGroupId":1,"ReadOnlyValue":true},{"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-06-02T16:46:44.0996296Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7,"InfoGroupId":1,"ReadOnlyValue":true}],"AnalysisGroups":[1,2],"Specifications":[1,2],"Methods":[1,2],"UnrestrictedAccessServiceCenter":true}
Response
integerResponse Format
application/json, text/json, text/html
Sample:
1