POST api/v2/MDLCalculation
Request
URI Parameters
Body Parameters
MDLCalculationInsert| Name | Description | Type | Additional information |
|---|---|---|---|
| Identification | string | ||
| Frequency | integer | ||
| FrequencyUnit | integer | ||
| AdvanceNotice | integer | ||
| LastCalculationDate | date | ||
| Active | boolean | ||
| UnrestrictedAccessServiceCenter | boolean | ||
| Analysis | ObjectCascadeOfMDLAnalysisInsert | ||
| Equipments | ObjectCascadeOfMDLEquipmentInsert | ||
| SampleTypes | ObjectCascadeOfMDLSampleTypeInsert | ||
| Methods | ObjectCascadeOfMDLMethodInsert | ||
| ServiceCenters | ObjectCascadeOfMDLServiceCenterInsert |
Request Formats
application/json, text/json
Sample:
{
"Identification": "sample string 1",
"Frequency": 2,
"FrequencyUnit": 3,
"AdvanceNotice": 4,
"LastCalculationDate": "2026-02-18T19:43:01.7961759Z",
"Active": true,
"UnrestrictedAccessServiceCenter": true,
"Analysis": {
"PostItems": [
{
"InfoId": 1,
"MDLCalculationId": 2,
"MethodMasterId": 3
},
{
"InfoId": 1,
"MDLCalculationId": 2,
"MethodMasterId": 3
}
],
"PutItems": [
{
"InfoId": 1,
"MDLCalculationId": 2,
"MethodMasterId": 3
},
{
"InfoId": 1,
"MDLCalculationId": 2,
"MethodMasterId": 3
}
],
"DeleteItems": [
{
"InfoId": 1,
"MDLCalculationId": 2,
"MethodMasterId": 3
},
{
"InfoId": 1,
"MDLCalculationId": 2,
"MethodMasterId": 3
}
]
},
"Equipments": {
"PostItems": [
{
"EquipmentId": 1,
"MDLCalculationId": 2
},
{
"EquipmentId": 1,
"MDLCalculationId": 2
}
],
"PutItems": [
{
"EquipmentId": 1,
"MDLCalculationId": 2
},
{
"EquipmentId": 1,
"MDLCalculationId": 2
}
],
"DeleteItems": [
{
"EquipmentId": 1,
"MDLCalculationId": 2
},
{
"EquipmentId": 1,
"MDLCalculationId": 2
}
]
},
"SampleTypes": {
"PostItems": [
{
"SampleTypeId": 1,
"MDLCalculationId": 2
},
{
"SampleTypeId": 1,
"MDLCalculationId": 2
}
],
"PutItems": [
{
"SampleTypeId": 1,
"MDLCalculationId": 2
},
{
"SampleTypeId": 1,
"MDLCalculationId": 2
}
],
"DeleteItems": [
{
"SampleTypeId": 1,
"MDLCalculationId": 2
},
{
"SampleTypeId": 1,
"MDLCalculationId": 2
}
]
},
"Methods": {
"PostItems": [
{
"MDLCalculationId": 1,
"MethodMasterId": 2,
"UseAllAnalysis": true
},
{
"MDLCalculationId": 1,
"MethodMasterId": 2,
"UseAllAnalysis": true
}
],
"PutItems": [
{
"MDLCalculationId": 1,
"MethodMasterId": 2,
"UseAllAnalysis": true
},
{
"MDLCalculationId": 1,
"MethodMasterId": 2,
"UseAllAnalysis": true
}
],
"DeleteItems": [
{
"MDLCalculationId": 1,
"MethodMasterId": 2,
"UseAllAnalysis": true
},
{
"MDLCalculationId": 1,
"MethodMasterId": 2,
"UseAllAnalysis": true
}
]
},
"ServiceCenters": {
"PostItems": [
{
"ServiceCenterId": 1,
"MDLCalculationId": 2
},
{
"ServiceCenterId": 1,
"MDLCalculationId": 2
}
],
"PutItems": [
{
"ServiceCenterId": 1,
"MDLCalculationId": 2
},
{
"ServiceCenterId": 1,
"MDLCalculationId": 2
}
],
"DeleteItems": [
{
"ServiceCenterId": 1,
"MDLCalculationId": 2
},
{
"ServiceCenterId": 1,
"MDLCalculationId": 2
}
]
}
}
text/html
Sample:
{"Identification":"sample string 1","Frequency":2,"FrequencyUnit":3,"AdvanceNotice":4,"LastCalculationDate":"2026-02-18T19:43:01.7961759Z","Active":true,"UnrestrictedAccessServiceCenter":true,"Analysis":{"PostItems":[{"InfoId":1,"MDLCalculationId":2,"MethodMasterId":3},{"InfoId":1,"MDLCalculationId":2,"MethodMasterId":3}],"PutItems":[{"InfoId":1,"MDLCalculationId":2,"MethodMasterId":3},{"InfoId":1,"MDLCalculationId":2,"MethodMasterId":3}],"DeleteItems":[{"InfoId":1,"MDLCalculationId":2,"MethodMasterId":3},{"InfoId":1,"MDLCalculationId":2,"MethodMasterId":3}]},"Equipments":{"PostItems":[{"EquipmentId":1,"MDLCalculationId":2},{"EquipmentId":1,"MDLCalculationId":2}],"PutItems":[{"EquipmentId":1,"MDLCalculationId":2},{"EquipmentId":1,"MDLCalculationId":2}],"DeleteItems":[{"EquipmentId":1,"MDLCalculationId":2},{"EquipmentId":1,"MDLCalculationId":2}]},"SampleTypes":{"PostItems":[{"SampleTypeId":1,"MDLCalculationId":2},{"SampleTypeId":1,"MDLCalculationId":2}],"PutItems":[{"SampleTypeId":1,"MDLCalculationId":2},{"SampleTypeId":1,"MDLCalculationId":2}],"DeleteItems":[{"SampleTypeId":1,"MDLCalculationId":2},{"SampleTypeId":1,"MDLCalculationId":2}]},"Methods":{"PostItems":[{"MDLCalculationId":1,"MethodMasterId":2,"UseAllAnalysis":true},{"MDLCalculationId":1,"MethodMasterId":2,"UseAllAnalysis":true}],"PutItems":[{"MDLCalculationId":1,"MethodMasterId":2,"UseAllAnalysis":true},{"MDLCalculationId":1,"MethodMasterId":2,"UseAllAnalysis":true}],"DeleteItems":[{"MDLCalculationId":1,"MethodMasterId":2,"UseAllAnalysis":true},{"MDLCalculationId":1,"MethodMasterId":2,"UseAllAnalysis":true}]},"ServiceCenters":{"PostItems":[{"ServiceCenterId":1,"MDLCalculationId":2},{"ServiceCenterId":1,"MDLCalculationId":2}],"PutItems":[{"ServiceCenterId":1,"MDLCalculationId":2},{"ServiceCenterId":1,"MDLCalculationId":2}],"DeleteItems":[{"ServiceCenterId":1,"MDLCalculationId":2},{"ServiceCenterId":1,"MDLCalculationId":2}]}}
Response
DefaultResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean | ||
| Messages | Collection of string | ||
| DialogType | integer | ||
| Data | Object |
Response Format
application/json, text/json
Sample:
{
"Success": true,
"Messages": [
"sample string 1",
"sample string 2"
],
"DialogType": 1,
"Data": {}
}
text/html
Sample:
{"Success":true,"Messages":["sample string 1","sample string 2"],"DialogType":1,"Data":{}}