PATCH api/v2/MapaLabsSamples/{mapaLabsSampleId}

Request

URI Parameters

NameDescriptionTypeAdditional information
mapaLabsSampleId

integer

Required

Body Parameters

PatchMapaLabsSample
NameDescriptionTypeAdditional information
SampleId

integer

MapaSampleId

integer

MapaSampleData

MapaLabsSampleInsert

Message

string

StatusId

integer

Request Formats

application/json, text/json

Sample:
{
  "SampleId": 1,
  "MapaSampleId": 1,
  "MapaSampleData": {
    "Analyses": [
      {
        "Info": {
          "Identification": "sample string 1"
        },
        "MeasurementUnit": {
          "Identification": "sample string 1"
        },
        "Method": {
          "Identification": "sample string 1"
        },
        "AnalysisGroup": {
          "Identification": "sample string 1"
        },
        "MethodId": 1,
        "AnalysisGroupId": 1,
        "InfoId": 1,
        "MeasurementUnitId": 1
      },
      {
        "Info": {
          "Identification": "sample string 1"
        },
        "MeasurementUnit": {
          "Identification": "sample string 1"
        },
        "Method": {
          "Identification": "sample string 1"
        },
        "AnalysisGroup": {
          "Identification": "sample string 1"
        },
        "MethodId": 1,
        "AnalysisGroupId": 1,
        "InfoId": 1,
        "MeasurementUnitId": 1
      }
    ],
    "Specifications": [
      {
        "Specification": {
          "Identification": "sample string 1",
          "Description": "sample string 2"
        },
        "SpecificationId": 1
      },
      {
        "Specification": {
          "Identification": "sample string 1",
          "Description": "sample string 2"
        },
        "SpecificationId": 1
      }
    ],
    "Infos": [
      {
        "InfoTypeId": 1,
        "Info": {
          "Identification": "sample string 1"
        },
        "InfoGroup": {
          "Identification": "sample string 1"
        },
        "InfoId": 2,
        "ValueEquipmentId": 1,
        "ValueAccountId": 1,
        "ValueConsumableMovementId": 1,
        "DisplayValue": "sample string 3",
        "ValueFileId": 1,
        "Attribute": "sample string 4",
        "InfoGroupId": 1,
        "Inherit": true,
        "Inherited": true,
        "RequiredValue": true
      },
      {
        "InfoTypeId": 1,
        "Info": {
          "Identification": "sample string 1"
        },
        "InfoGroup": {
          "Identification": "sample string 1"
        },
        "InfoId": 2,
        "ValueEquipmentId": 1,
        "ValueAccountId": 1,
        "ValueConsumableMovementId": 1,
        "DisplayValue": "sample string 3",
        "ValueFileId": 1,
        "Attribute": "sample string 4",
        "InfoGroupId": 1,
        "Inherit": true,
        "Inherited": true,
        "RequiredValue": true
      }
    ],
    "Identification": "sample string 1",
    "ControlIdentification": "sample string 2",
    "TakenDateTime": "2025-08-04T18:39:15.5656172Z",
    "SampleTypeId": 1,
    "ServiceCenterId": 3,
    "CollectionPointId": 1,
    "PriceListId": 1,
    "ConclusionTime": 1,
    "ConclusionTimeFixed": true,
    "AccountId": 1,
    "RelatedAccountId": 1,
    "SampleReasonId": 5,
    "ReferenceKey": "sample string 6",
    "SyncPortal": true,
    "Latitude": 1.1,
    "Altitude": 1.1,
    "Longitude": 1.1,
    "groupId": 1,
    "UpdateTermAndPrice": true
  },
  "Message": "sample string 1",
  "StatusId": 1
}

text/html

Sample:
{"SampleId":1,"MapaSampleId":1,"MapaSampleData":{"Analyses":[{"Info":{"Identification":"sample string 1"},"MeasurementUnit":{"Identification":"sample string 1"},"Method":{"Identification":"sample string 1"},"AnalysisGroup":{"Identification":"sample string 1"},"MethodId":1,"AnalysisGroupId":1,"InfoId":1,"MeasurementUnitId":1},{"Info":{"Identification":"sample string 1"},"MeasurementUnit":{"Identification":"sample string 1"},"Method":{"Identification":"sample string 1"},"AnalysisGroup":{"Identification":"sample string 1"},"MethodId":1,"AnalysisGroupId":1,"InfoId":1,"MeasurementUnitId":1}],"Specifications":[{"Specification":{"Identification":"sample string 1","Description":"sample string 2"},"SpecificationId":1},{"Specification":{"Identification":"sample string 1","Description":"sample string 2"},"SpecificationId":1}],"Infos":[{"InfoTypeId":1,"Info":{"Identification":"sample string 1"},"InfoGroup":{"Identification":"sample string 1"},"InfoId":2,"ValueEquipmentId":1,"ValueAccountId":1,"ValueConsumableMovementId":1,"DisplayValue":"sample string 3","ValueFileId":1,"Attribute":"sample string 4","InfoGroupId":1,"Inherit":true,"Inherited":true,"RequiredValue":true},{"InfoTypeId":1,"Info":{"Identification":"sample string 1"},"InfoGroup":{"Identification":"sample string 1"},"InfoId":2,"ValueEquipmentId":1,"ValueAccountId":1,"ValueConsumableMovementId":1,"DisplayValue":"sample string 3","ValueFileId":1,"Attribute":"sample string 4","InfoGroupId":1,"Inherit":true,"Inherited":true,"RequiredValue":true}],"Identification":"sample string 1","ControlIdentification":"sample string 2","TakenDateTime":"2025-08-04T18:39:15.5656172Z","SampleTypeId":1,"ServiceCenterId":3,"CollectionPointId":1,"PriceListId":1,"ConclusionTime":1,"ConclusionTimeFixed":true,"AccountId":1,"RelatedAccountId":1,"SampleReasonId":5,"ReferenceKey":"sample string 6","SyncPortal":true,"Latitude":1.1,"Altitude":1.1,"Longitude":1.1,"groupId":1,"UpdateTermAndPrice":true},"Message":"sample string 1","StatusId":1}

Response

IHttpActionResult

Response Format

application/json, text/json, text/html

Sample:

Sample not available.