PUT api/v2/Collect/Work

Request

URI Parameters

Body Parameters

CollectSyncWork
NameDescriptionTypeAdditional information
Work

CollectWork

WorkInfos

Collection of CollectWorkInfo

ConsumableMovements

Collection of CollectConsumableMovement

Note

string

Request Formats

application/json, text/json

Sample:
{
  "Work": {
    "Id": 1,
    "ControlNumber": "sample string 2",
    "Identification": "sample string 3",
    "AccountId": 1,
    "WorkTypeId": 1,
    "WorkClassId": 1,
    "WorkSubclassId": 1,
    "RelatedAccountId": 1,
    "Conclusion": "2025-08-04T18:39:35.6986811Z",
    "Execution": "2025-08-04T18:39:35.6986811Z",
    "ResponsibleUserId": 1,
    "Active": true,
    "PartialSync": true
  },
  "WorkInfos": [
    {
      "Id": 1,
      "WorkId": 2,
      "ReadOnlyValue": true,
      "Order": 4,
      "EditionDateTime": "2025-08-04T18:39:35.6998593Z",
      "EditionUserId": 1,
      "InfoId": 1,
      "InfoTypeId": 1,
      "ForceScale": 1,
      "ForceSignifDigits": 1,
      "RequiredValue": true,
      "MeasurementUnitId": 1,
      "ValueText": "sample string 6",
      "ValueInteger": 1,
      "ValueFloat": 1.1,
      "ValueDateTime": "2025-08-04T18:39:35.6998593Z",
      "ValueBoolean": true,
      "ValueEquipmentId": 1,
      "ValueAccountId": 1,
      "ValueConsumableMovementId": "daa1ea88-089f-42cc-8c82-5d04ba05ffab",
      "DisplayValue": "sample string 7"
    },
    {
      "Id": 1,
      "WorkId": 2,
      "ReadOnlyValue": true,
      "Order": 4,
      "EditionDateTime": "2025-08-04T18:39:35.6998593Z",
      "EditionUserId": 1,
      "InfoId": 1,
      "InfoTypeId": 1,
      "ForceScale": 1,
      "ForceSignifDigits": 1,
      "RequiredValue": true,
      "MeasurementUnitId": 1,
      "ValueText": "sample string 6",
      "ValueInteger": 1,
      "ValueFloat": 1.1,
      "ValueDateTime": "2025-08-04T18:39:35.6998593Z",
      "ValueBoolean": true,
      "ValueEquipmentId": 1,
      "ValueAccountId": 1,
      "ValueConsumableMovementId": "daa1ea88-089f-42cc-8c82-5d04ba05ffab",
      "DisplayValue": "sample string 7"
    }
  ],
  "ConsumableMovements": [
    {
      "Id": "c94a0359-fab8-4fc0-aed4-867d119dd808",
      "ConsumableId": 2,
      "Quantity": 3.1,
      "SampleId": "sample string 4",
      "MethodId": 1,
      "WorkId": 1
    },
    {
      "Id": "c94a0359-fab8-4fc0-aed4-867d119dd808",
      "ConsumableId": 2,
      "Quantity": 3.1,
      "SampleId": "sample string 4",
      "MethodId": 1,
      "WorkId": 1
    }
  ],
  "Note": "sample string 1"
}

text/html

Sample:
{"Work":{"Id":1,"ControlNumber":"sample string 2","Identification":"sample string 3","AccountId":1,"WorkTypeId":1,"WorkClassId":1,"WorkSubclassId":1,"RelatedAccountId":1,"Conclusion":"2025-08-04T18:39:35.6986811Z","Execution":"2025-08-04T18:39:35.6986811Z","ResponsibleUserId":1,"Active":true,"PartialSync":true},"WorkInfos":[{"Id":1,"WorkId":2,"ReadOnlyValue":true,"Order":4,"EditionDateTime":"2025-08-04T18:39:35.6998593Z","EditionUserId":1,"InfoId":1,"InfoTypeId":1,"ForceScale":1,"ForceSignifDigits":1,"RequiredValue":true,"MeasurementUnitId":1,"ValueText":"sample string 6","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2025-08-04T18:39:35.6998593Z","ValueBoolean":true,"ValueEquipmentId":1,"ValueAccountId":1,"ValueConsumableMovementId":"daa1ea88-089f-42cc-8c82-5d04ba05ffab","DisplayValue":"sample string 7"},{"Id":1,"WorkId":2,"ReadOnlyValue":true,"Order":4,"EditionDateTime":"2025-08-04T18:39:35.6998593Z","EditionUserId":1,"InfoId":1,"InfoTypeId":1,"ForceScale":1,"ForceSignifDigits":1,"RequiredValue":true,"MeasurementUnitId":1,"ValueText":"sample string 6","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2025-08-04T18:39:35.6998593Z","ValueBoolean":true,"ValueEquipmentId":1,"ValueAccountId":1,"ValueConsumableMovementId":"daa1ea88-089f-42cc-8c82-5d04ba05ffab","DisplayValue":"sample string 7"}],"ConsumableMovements":[{"Id":"c94a0359-fab8-4fc0-aed4-867d119dd808","ConsumableId":2,"Quantity":3.1,"SampleId":"sample string 4","MethodId":1,"WorkId":1},{"Id":"c94a0359-fab8-4fc0-aed4-867d119dd808","ConsumableId":2,"Quantity":3.1,"SampleId":"sample string 4","MethodId":1,"WorkId":1}],"Note":"sample string 1"}

Response

IHttpActionResult

Response Format

application/json, text/json, text/html

Sample:

Sample not available.