PUT api/v2/MDLCalculation/{MDLCalculationId}
Request
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| MDLCalculationId | integer |
Required |
Body Parameters
MDLCalculationUpdate| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer | ||
| Identification | string | ||
| Frequency | integer | ||
| FrequencyUnit | integer | ||
| AdvanceNotice | integer | ||
| LastCalculationDate | date | ||
| Active | boolean | ||
| UnrestrictedAccessServiceCenter | boolean | ||
| Analysis | ObjectCascadeOfMDLAnalysisUpdate | ||
| Equipments | ObjectCascadeOfMDLEquipmentUpdate | ||
| SampleTypes | ObjectCascadeOfMDLSampleTypeUpdate | ||
| Methods | ObjectCascadeOfMDLMethodUpdate | ||
| ServiceCenters | ObjectCascadeOfMDLServiceCenterUpdate |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Identification": "sample string 2",
"Frequency": 3,
"FrequencyUnit": 4,
"AdvanceNotice": 5,
"LastCalculationDate": "2026-02-18T19:43:03.420429Z",
"Active": true,
"UnrestrictedAccessServiceCenter": true,
"Analysis": {
"PostItems": [
{
"Id": 1,
"InfoId": 2,
"MDLCalculationId": 3,
"MethodMasterId": 4
},
{
"Id": 1,
"InfoId": 2,
"MDLCalculationId": 3,
"MethodMasterId": 4
}
],
"PutItems": [
{
"Id": 1,
"InfoId": 2,
"MDLCalculationId": 3,
"MethodMasterId": 4
},
{
"Id": 1,
"InfoId": 2,
"MDLCalculationId": 3,
"MethodMasterId": 4
}
],
"DeleteItems": [
{
"Id": 1,
"InfoId": 2,
"MDLCalculationId": 3,
"MethodMasterId": 4
},
{
"Id": 1,
"InfoId": 2,
"MDLCalculationId": 3,
"MethodMasterId": 4
}
]
},
"Equipments": {
"PostItems": [
{
"Id": 1,
"EquipmentId": 2,
"MDLCalculationId": 3
},
{
"Id": 1,
"EquipmentId": 2,
"MDLCalculationId": 3
}
],
"PutItems": [
{
"Id": 1,
"EquipmentId": 2,
"MDLCalculationId": 3
},
{
"Id": 1,
"EquipmentId": 2,
"MDLCalculationId": 3
}
],
"DeleteItems": [
{
"Id": 1,
"EquipmentId": 2,
"MDLCalculationId": 3
},
{
"Id": 1,
"EquipmentId": 2,
"MDLCalculationId": 3
}
]
},
"SampleTypes": {
"PostItems": [
{
"Id": 1,
"SampleTypeId": 2,
"MDLCalculationId": 3
},
{
"Id": 1,
"SampleTypeId": 2,
"MDLCalculationId": 3
}
],
"PutItems": [
{
"Id": 1,
"SampleTypeId": 2,
"MDLCalculationId": 3
},
{
"Id": 1,
"SampleTypeId": 2,
"MDLCalculationId": 3
}
],
"DeleteItems": [
{
"Id": 1,
"SampleTypeId": 2,
"MDLCalculationId": 3
},
{
"Id": 1,
"SampleTypeId": 2,
"MDLCalculationId": 3
}
]
},
"Methods": {
"PostItems": [
{
"Id": 1,
"MDLCalculationId": 2,
"MethodMasterId": 3,
"UseAllAnalysis": true
},
{
"Id": 1,
"MDLCalculationId": 2,
"MethodMasterId": 3,
"UseAllAnalysis": true
}
],
"PutItems": [
{
"Id": 1,
"MDLCalculationId": 2,
"MethodMasterId": 3,
"UseAllAnalysis": true
},
{
"Id": 1,
"MDLCalculationId": 2,
"MethodMasterId": 3,
"UseAllAnalysis": true
}
],
"DeleteItems": [
{
"Id": 1,
"MDLCalculationId": 2,
"MethodMasterId": 3,
"UseAllAnalysis": true
},
{
"Id": 1,
"MDLCalculationId": 2,
"MethodMasterId": 3,
"UseAllAnalysis": true
}
]
},
"ServiceCenters": {
"PostItems": [
{
"Id": 1,
"ServiceCenterId": 2,
"MDLCalculationId": 3
},
{
"Id": 1,
"ServiceCenterId": 2,
"MDLCalculationId": 3
}
],
"PutItems": [
{
"Id": 1,
"ServiceCenterId": 2,
"MDLCalculationId": 3
},
{
"Id": 1,
"ServiceCenterId": 2,
"MDLCalculationId": 3
}
],
"DeleteItems": [
{
"Id": 1,
"ServiceCenterId": 2,
"MDLCalculationId": 3
},
{
"Id": 1,
"ServiceCenterId": 2,
"MDLCalculationId": 3
}
]
}
}
text/html
Sample:
{"Id":1,"Identification":"sample string 2","Frequency":3,"FrequencyUnit":4,"AdvanceNotice":5,"LastCalculationDate":"2026-02-18T19:43:03.420429Z","Active":true,"UnrestrictedAccessServiceCenter":true,"Analysis":{"PostItems":[{"Id":1,"InfoId":2,"MDLCalculationId":3,"MethodMasterId":4},{"Id":1,"InfoId":2,"MDLCalculationId":3,"MethodMasterId":4}],"PutItems":[{"Id":1,"InfoId":2,"MDLCalculationId":3,"MethodMasterId":4},{"Id":1,"InfoId":2,"MDLCalculationId":3,"MethodMasterId":4}],"DeleteItems":[{"Id":1,"InfoId":2,"MDLCalculationId":3,"MethodMasterId":4},{"Id":1,"InfoId":2,"MDLCalculationId":3,"MethodMasterId":4}]},"Equipments":{"PostItems":[{"Id":1,"EquipmentId":2,"MDLCalculationId":3},{"Id":1,"EquipmentId":2,"MDLCalculationId":3}],"PutItems":[{"Id":1,"EquipmentId":2,"MDLCalculationId":3},{"Id":1,"EquipmentId":2,"MDLCalculationId":3}],"DeleteItems":[{"Id":1,"EquipmentId":2,"MDLCalculationId":3},{"Id":1,"EquipmentId":2,"MDLCalculationId":3}]},"SampleTypes":{"PostItems":[{"Id":1,"SampleTypeId":2,"MDLCalculationId":3},{"Id":1,"SampleTypeId":2,"MDLCalculationId":3}],"PutItems":[{"Id":1,"SampleTypeId":2,"MDLCalculationId":3},{"Id":1,"SampleTypeId":2,"MDLCalculationId":3}],"DeleteItems":[{"Id":1,"SampleTypeId":2,"MDLCalculationId":3},{"Id":1,"SampleTypeId":2,"MDLCalculationId":3}]},"Methods":{"PostItems":[{"Id":1,"MDLCalculationId":2,"MethodMasterId":3,"UseAllAnalysis":true},{"Id":1,"MDLCalculationId":2,"MethodMasterId":3,"UseAllAnalysis":true}],"PutItems":[{"Id":1,"MDLCalculationId":2,"MethodMasterId":3,"UseAllAnalysis":true},{"Id":1,"MDLCalculationId":2,"MethodMasterId":3,"UseAllAnalysis":true}],"DeleteItems":[{"Id":1,"MDLCalculationId":2,"MethodMasterId":3,"UseAllAnalysis":true},{"Id":1,"MDLCalculationId":2,"MethodMasterId":3,"UseAllAnalysis":true}]},"ServiceCenters":{"PostItems":[{"Id":1,"ServiceCenterId":2,"MDLCalculationId":3},{"Id":1,"ServiceCenterId":2,"MDLCalculationId":3}],"PutItems":[{"Id":1,"ServiceCenterId":2,"MDLCalculationId":3},{"Id":1,"ServiceCenterId":2,"MDLCalculationId":3}],"DeleteItems":[{"Id":1,"ServiceCenterId":2,"MDLCalculationId":3},{"Id":1,"ServiceCenterId":2,"MDLCalculationId":3}]}}
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":{}}