POST api/qc/saveqcresult

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
viewModel
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ValidationErrors": {
    "System.Object": {}
  },
  "QCList": [
    {
      "QCHeaderId": 1,
      "Description": "sample string 2",
      "Label": 3.1,
      "Type": "sample string 4",
      "SubType": "sample string 5",
      "Key": "sample string 6",
      "QCDetailList": [
        {
          "QCDetailId": 1,
          "QCHeaderId": 2,
          "Description": "sample string 3",
          "IsBoundary": true,
          "IsTarget": true
        },
        {
          "QCDetailId": 1,
          "QCHeaderId": 2,
          "Description": "sample string 3",
          "IsBoundary": true,
          "IsTarget": true
        },
        {
          "QCDetailId": 1,
          "QCHeaderId": 2,
          "Description": "sample string 3",
          "IsBoundary": true,
          "IsTarget": true
        }
      ]
    },
    {
      "QCHeaderId": 1,
      "Description": "sample string 2",
      "Label": 3.1,
      "Type": "sample string 4",
      "SubType": "sample string 5",
      "Key": "sample string 6",
      "QCDetailList": [
        {
          "QCDetailId": 1,
          "QCHeaderId": 2,
          "Description": "sample string 3",
          "IsBoundary": true,
          "IsTarget": true
        },
        {
          "QCDetailId": 1,
          "QCHeaderId": 2,
          "Description": "sample string 3",
          "IsBoundary": true,
          "IsTarget": true
        },
        {
          "QCDetailId": 1,
          "QCHeaderId": 2,
          "Description": "sample string 3",
          "IsBoundary": true,
          "IsTarget": true
        }
      ]
    },
    {
      "QCHeaderId": 1,
      "Description": "sample string 2",
      "Label": 3.1,
      "Type": "sample string 4",
      "SubType": "sample string 5",
      "Key": "sample string 6",
      "QCDetailList": [
        {
          "QCDetailId": 1,
          "QCHeaderId": 2,
          "Description": "sample string 3",
          "IsBoundary": true,
          "IsTarget": true
        },
        {
          "QCDetailId": 1,
          "QCHeaderId": 2,
          "Description": "sample string 3",
          "IsBoundary": true,
          "IsTarget": true
        },
        {
          "QCDetailId": 1,
          "QCHeaderId": 2,
          "Description": "sample string 3",
          "IsBoundary": true,
          "IsTarget": true
        }
      ]
    }
  ],
  "QCResultHeader": {
    "QCResultId": 1,
    "Date": "2026-04-04T16:59:09.2615168+11:00",
    "EmployeeNo": 3,
    "Latitude": 4.0,
    "Longitude": 5.0,
    "QcResultLengthStumpList": [
      {
        "QCResultId": 1,
        "PlantCode": "sample string 2",
        "CrewCode": "sample string 3",
        "SubType": "sample string 4",
        "QCDetailId": 5,
        "Label": "sample string 6",
        "Count": 7,
        "IsBoundary": true,
        "IsTarget": true
      },
      {
        "QCResultId": 1,
        "PlantCode": "sample string 2",
        "CrewCode": "sample string 3",
        "SubType": "sample string 4",
        "QCDetailId": 5,
        "Label": "sample string 6",
        "Count": 7,
        "IsBoundary": true,
        "IsTarget": true
      },
      {
        "QCResultId": 1,
        "PlantCode": "sample string 2",
        "CrewCode": "sample string 3",
        "SubType": "sample string 4",
        "QCDetailId": 5,
        "Label": "sample string 6",
        "Count": 7,
        "IsBoundary": true,
        "IsTarget": true
      }
    ],
    "qcResultOtherList": [
      {
        "QCResultId": 1,
        "PlantCode": "sample string 2",
        "CrewCode": "sample string 3",
        "Target": 4.1,
        "Actual": 5.1,
        "Compliant": 6,
        "Sweep": 7,
        "Knots": 8,
        "MachineDamage": 9,
        "NoDamage": 10,
        "SmallDamage": 11,
        "LargeDamage": 12
      },
      {
        "QCResultId": 1,
        "PlantCode": "sample string 2",
        "CrewCode": "sample string 3",
        "Target": 4.1,
        "Actual": 5.1,
        "Compliant": 6,
        "Sweep": 7,
        "Knots": 8,
        "MachineDamage": 9,
        "NoDamage": 10,
        "SmallDamage": 11,
        "LargeDamage": 12
      },
      {
        "QCResultId": 1,
        "PlantCode": "sample string 2",
        "CrewCode": "sample string 3",
        "Target": 4.1,
        "Actual": 5.1,
        "Compliant": 6,
        "Sweep": 7,
        "Knots": 8,
        "MachineDamage": 9,
        "NoDamage": 10,
        "SmallDamage": 11,
        "LargeDamage": 12
      }
    ]
  },
  "ReturnStatus": true,
  "ReturnMessage": [
    "sample string 1",
    "sample string 2",
    "sample string 3"
  ],
  "ReturnCount": 2,
  "ReturnValue": 3
}

text/xml

Sample:
<QCViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Peercore.HarvestCo.API.ViewModels">
  <ReturnCount xmlns="http://schemas.datacontract.org/2004/07/Peercore.HarvestCo.Model">2</ReturnCount>
  <ReturnMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Peercore.HarvestCo.Model">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
    <d2p1:string>sample string 3</d2p1:string>
  </ReturnMessage>
  <ReturnStatus xmlns="http://schemas.datacontract.org/2004/07/Peercore.HarvestCo.Model">true</ReturnStatus>
  <ReturnValue xmlns="http://schemas.datacontract.org/2004/07/Peercore.HarvestCo.Model">3</ReturnValue>
  <ValidationErrors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Peercore.HarvestCo.Model">
    <d2p1:KeyValueOfanyTypeanyType>
      <d2p1:Key />
      <d2p1:Value />
    </d2p1:KeyValueOfanyTypeanyType>
    <d2p1:KeyValueOfanyTypeanyType>
      <d2p1:Key />
      <d2p1:Value />
    </d2p1:KeyValueOfanyTypeanyType>
    <d2p1:KeyValueOfanyTypeanyType>
      <d2p1:Key />
      <d2p1:Value />
    </d2p1:KeyValueOfanyTypeanyType>
  </ValidationErrors>
  <QCList xmlns:d2p1="http://schemas.datacontract.org/2004/07/Peercore.HarvestCo.Model">
    <d2p1:QCHeaderModel>
      <d2p1:Description>sample string 2</d2p1:Description>
      <d2p1:Key>sample string 6</d2p1:Key>
      <d2p1:Label>3.1</d2p1:Label>
      <d2p1:QCDetailList>
        <d2p1:QCDetailModel>
          <d2p1:Description>sample string 3</d2p1:Description>
          <d2p1:IsBoundary>true</d2p1:IsBoundary>
          <d2p1:IsTarget>true</d2p1:IsTarget>
          <d2p1:QCDetailId>1</d2p1:QCDetailId>
          <d2p1:QCHeaderId>2</d2p1:QCHeaderId>
        </d2p1:QCDetailModel>
        <d2p1:QCDetailModel>
          <d2p1:Description>sample string 3</d2p1:Description>
          <d2p1:IsBoundary>true</d2p1:IsBoundary>
          <d2p1:IsTarget>true</d2p1:IsTarget>
          <d2p1:QCDetailId>1</d2p1:QCDetailId>
          <d2p1:QCHeaderId>2</d2p1:QCHeaderId>
        </d2p1:QCDetailModel>
        <d2p1:QCDetailModel>
          <d2p1:Description>sample string 3</d2p1:Description>
          <d2p1:IsBoundary>true</d2p1:IsBoundary>
          <d2p1:IsTarget>true</d2p1:IsTarget>
          <d2p1:QCDetailId>1</d2p1:QCDetailId>
          <d2p1:QCHeaderId>2</d2p1:QCHeaderId>
        </d2p1:QCDetailModel>
      </d2p1:QCDetailList>
      <d2p1:QCHeaderId>1</d2p1:QCHeaderId>
      <d2p1:SubType>sample string 5</d2p1:SubType>
      <d2p1:Type>sample string 4</d2p1:Type>
    </d2p1:QCHeaderModel>
    <d2p1:QCHeaderModel>
      <d2p1:Description>sample string 2</d2p1:Description>
      <d2p1:Key>sample string 6</d2p1:Key>
      <d2p1:Label>3.1</d2p1:Label>
      <d2p1:QCDetailList>
        <d2p1:QCDetailModel>
          <d2p1:Description>sample string 3</d2p1:Description>
          <d2p1:IsBoundary>true</d2p1:IsBoundary>
          <d2p1:IsTarget>true</d2p1:IsTarget>
          <d2p1:QCDetailId>1</d2p1:QCDetailId>
          <d2p1:QCHeaderId>2</d2p1:QCHeaderId>
        </d2p1:QCDetailModel>
        <d2p1:QCDetailModel>
          <d2p1:Description>sample string 3</d2p1:Description>
          <d2p1:IsBoundary>true</d2p1:IsBoundary>
          <d2p1:IsTarget>true</d2p1:IsTarget>
          <d2p1:QCDetailId>1</d2p1:QCDetailId>
          <d2p1:QCHeaderId>2</d2p1:QCHeaderId>
        </d2p1:QCDetailModel>
        <d2p1:QCDetailModel>
          <d2p1:Description>sample string 3</d2p1:Description>
          <d2p1:IsBoundary>true</d2p1:IsBoundary>
          <d2p1:IsTarget>true</d2p1:IsTarget>
          <d2p1:QCDetailId>1</d2p1:QCDetailId>
          <d2p1:QCHeaderId>2</d2p1:QCHeaderId>
        </d2p1:QCDetailModel>
      </d2p1:QCDetailList>
      <d2p1:QCHeaderId>1</d2p1:QCHeaderId>
      <d2p1:SubType>sample string 5</d2p1:SubType>
      <d2p1:Type>sample string 4</d2p1:Type>
    </d2p1:QCHeaderModel>
    <d2p1:QCHeaderModel>
      <d2p1:Description>sample string 2</d2p1:Description>
      <d2p1:Key>sample string 6</d2p1:Key>
      <d2p1:Label>3.1</d2p1:Label>
      <d2p1:QCDetailList>
        <d2p1:QCDetailModel>
          <d2p1:Description>sample string 3</d2p1:Description>
          <d2p1:IsBoundary>true</d2p1:IsBoundary>
          <d2p1:IsTarget>true</d2p1:IsTarget>
          <d2p1:QCDetailId>1</d2p1:QCDetailId>
          <d2p1:QCHeaderId>2</d2p1:QCHeaderId>
        </d2p1:QCDetailModel>
        <d2p1:QCDetailModel>
          <d2p1:Description>sample string 3</d2p1:Description>
          <d2p1:IsBoundary>true</d2p1:IsBoundary>
          <d2p1:IsTarget>true</d2p1:IsTarget>
          <d2p1:QCDetailId>1</d2p1:QCDetailId>
          <d2p1:QCHeaderId>2</d2p1:QCHeaderId>
        </d2p1:QCDetailModel>
        <d2p1:QCDetailModel>
          <d2p1:Description>sample string 3</d2p1:Description>
          <d2p1:IsBoundary>true</d2p1:IsBoundary>
          <d2p1:IsTarget>true</d2p1:IsTarget>
          <d2p1:QCDetailId>1</d2p1:QCDetailId>
          <d2p1:QCHeaderId>2</d2p1:QCHeaderId>
        </d2p1:QCDetailModel>
      </d2p1:QCDetailList>
      <d2p1:QCHeaderId>1</d2p1:QCHeaderId>
      <d2p1:SubType>sample string 5</d2p1:SubType>
      <d2p1:Type>sample string 4</d2p1:Type>
    </d2p1:QCHeaderModel>
  </QCList>
  <QCResultHeader xmlns:d2p1="http://schemas.datacontract.org/2004/07/Peercore.HarvestCo.Model">
    <d2p1:Date>2026-04-04T16:59:09.2615168+11:00</d2p1:Date>
    <d2p1:EmployeeNo>3</d2p1:EmployeeNo>
    <d2p1:Latitude>4</d2p1:Latitude>
    <d2p1:Longitude>5</d2p1:Longitude>
    <d2p1:QCResultId>1</d2p1:QCResultId>
    <d2p1:QcResultLengthStumpList>
      <d2p1:QcResultLengthStump>
        <d2p1:Count>7</d2p1:Count>
        <d2p1:CrewCode>sample string 3</d2p1:CrewCode>
        <d2p1:IsBoundary>true</d2p1:IsBoundary>
        <d2p1:IsTarget>true</d2p1:IsTarget>
        <d2p1:Label>sample string 6</d2p1:Label>
        <d2p1:PlantCode>sample string 2</d2p1:PlantCode>
        <d2p1:QCDetailId>5</d2p1:QCDetailId>
        <d2p1:QCResultId>1</d2p1:QCResultId>
        <d2p1:SubType>sample string 4</d2p1:SubType>
      </d2p1:QcResultLengthStump>
      <d2p1:QcResultLengthStump>
        <d2p1:Count>7</d2p1:Count>
        <d2p1:CrewCode>sample string 3</d2p1:CrewCode>
        <d2p1:IsBoundary>true</d2p1:IsBoundary>
        <d2p1:IsTarget>true</d2p1:IsTarget>
        <d2p1:Label>sample string 6</d2p1:Label>
        <d2p1:PlantCode>sample string 2</d2p1:PlantCode>
        <d2p1:QCDetailId>5</d2p1:QCDetailId>
        <d2p1:QCResultId>1</d2p1:QCResultId>
        <d2p1:SubType>sample string 4</d2p1:SubType>
      </d2p1:QcResultLengthStump>
      <d2p1:QcResultLengthStump>
        <d2p1:Count>7</d2p1:Count>
        <d2p1:CrewCode>sample string 3</d2p1:CrewCode>
        <d2p1:IsBoundary>true</d2p1:IsBoundary>
        <d2p1:IsTarget>true</d2p1:IsTarget>
        <d2p1:Label>sample string 6</d2p1:Label>
        <d2p1:PlantCode>sample string 2</d2p1:PlantCode>
        <d2p1:QCDetailId>5</d2p1:QCDetailId>
        <d2p1:QCResultId>1</d2p1:QCResultId>
        <d2p1:SubType>sample string 4</d2p1:SubType>
      </d2p1:QcResultLengthStump>
    </d2p1:QcResultLengthStumpList>
    <d2p1:qcResultOtherList>
      <d2p1:QcResultOther>
        <d2p1:Actual>5.1</d2p1:Actual>
        <d2p1:Compliant>6</d2p1:Compliant>
        <d2p1:CrewCode>sample string 3</d2p1:CrewCode>
        <d2p1:Knots>8</d2p1:Knots>
        <d2p1:LargeDamage>12</d2p1:LargeDamage>
        <d2p1:MachineDamage>9</d2p1:MachineDamage>
        <d2p1:NoDamage>10</d2p1:NoDamage>
        <d2p1:PlantCode>sample string 2</d2p1:PlantCode>
        <d2p1:QCResultId>1</d2p1:QCResultId>
        <d2p1:SmallDamage>11</d2p1:SmallDamage>
        <d2p1:Sweep>7</d2p1:Sweep>
        <d2p1:Target>4.1</d2p1:Target>
      </d2p1:QcResultOther>
      <d2p1:QcResultOther>
        <d2p1:Actual>5.1</d2p1:Actual>
        <d2p1:Compliant>6</d2p1:Compliant>
        <d2p1:CrewCode>sample string 3</d2p1:CrewCode>
        <d2p1:Knots>8</d2p1:Knots>
        <d2p1:LargeDamage>12</d2p1:LargeDamage>
        <d2p1:MachineDamage>9</d2p1:MachineDamage>
        <d2p1:NoDamage>10</d2p1:NoDamage>
        <d2p1:PlantCode>sample string 2</d2p1:PlantCode>
        <d2p1:QCResultId>1</d2p1:QCResultId>
        <d2p1:SmallDamage>11</d2p1:SmallDamage>
        <d2p1:Sweep>7</d2p1:Sweep>
        <d2p1:Target>4.1</d2p1:Target>
      </d2p1:QcResultOther>
      <d2p1:QcResultOther>
        <d2p1:Actual>5.1</d2p1:Actual>
        <d2p1:Compliant>6</d2p1:Compliant>
        <d2p1:CrewCode>sample string 3</d2p1:CrewCode>
        <d2p1:Knots>8</d2p1:Knots>
        <d2p1:LargeDamage>12</d2p1:LargeDamage>
        <d2p1:MachineDamage>9</d2p1:MachineDamage>
        <d2p1:NoDamage>10</d2p1:NoDamage>
        <d2p1:PlantCode>sample string 2</d2p1:PlantCode>
        <d2p1:QCResultId>1</d2p1:QCResultId>
        <d2p1:SmallDamage>11</d2p1:SmallDamage>
        <d2p1:Sweep>7</d2p1:Sweep>
        <d2p1:Target>4.1</d2p1:Target>
      </d2p1:QcResultOther>
    </d2p1:qcResultOtherList>
  </QCResultHeader>
</QCViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.