POST api/WorkOrder/ModifyWTR

Request Information

URI Parameters

None.

Body Parameters

WTRHeader
NameDescriptionTypeAdditional information
WTRID

integer

None.

WorkShopWorkerID

string

None.

WTRDate

date

None.

WorkerUsedHours

decimal number

None.

WorkerLeave

decimal number

None.

WorkerSickLeave

decimal number

None.

WorkerTotalHours

decimal number

None.

ClerkID

string

None.

ShiftNo

integer

None.

Notes

string

None.

PostedToWorkOrders

boolean

None.

PostedToPayroll

boolean

None.

InsUpdDate

date

None.

WTRLines

WTRLines_

None.

Request Formats

application/xml, text/xml

Sample:
<WTRHeader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <WTRID>1</WTRID>
  <WorkShopWorkerID>sample string 1</WorkShopWorkerID>
  <WTRDate>2024-06-14T04:07:17.3823194+02:00</WTRDate>
  <WorkerUsedHours>1</WorkerUsedHours>
  <WorkerLeave>1</WorkerLeave>
  <WorkerSickLeave>1</WorkerSickLeave>
  <WorkerTotalHours>1</WorkerTotalHours>
  <ClerkID>sample string 2</ClerkID>
  <ShiftNo>1</ShiftNo>
  <Notes>sample string 3</Notes>
  <PostedToWorkOrders>true</PostedToWorkOrders>
  <PostedToPayroll>true</PostedToPayroll>
  <InsUpdDate>2024-06-14T04:07:17.3823194+02:00</InsUpdDate>
  <WTRLines>
    <WTRLine>
      <WTRID>1</WTRID>
      <WTRLineNoID>1</WTRLineNoID>
      <WorkOrderOperationLNr>1</WorkOrderOperationLNr>
      <WorkOrderBook>sample string 1</WorkOrderBook>
      <WorkOrderYear>1</WorkOrderYear>
      <WorkOrderNumber>1</WorkOrderNumber>
      <WorkOrderOperationID>1</WorkOrderOperationID>
      <WorkOrderOperationStOpID>sample string 2</WorkOrderOperationStOpID>
      <StOperationGroupID>sample string 3</StOperationGroupID>
      <LineStatus>1</LineStatus>
      <Qty>1</Qty>
      <ScrapQty>1</ScrapQty>
      <StartTime>2024-06-14T04:07:17.3823194+02:00</StartTime>
      <EndTime>2024-06-14T04:07:17.3823194+02:00</EndTime>
      <TotalTime>1</TotalTime>
      <SetUpOperation>true</SetUpOperation>
      <Overtime>true</Overtime>
      <ExcludeSalary>true</ExcludeSalary>
      <WorkStationID>sample string 7</WorkStationID>
      <WorkFactor>1</WorkFactor>
      <ItemID>sample string 8</ItemID>
      <UnplanedStOpID>sample string 9</UnplanedStOpID>
      <WTRLNote>sample string 10</WTRLNote>
      <JamLines>
        <JamLine>
          <WTRJamLineNoID>1</WTRJamLineNoID>
          <WTRID>1</WTRID>
          <WTRLineNoID>1</WTRLineNoID>
          <WTRJamID>sample string 1</WTRJamID>
          <WTRJamNote>sample string 2</WTRJamNote>
          <WTRJamStartTime>2024-06-14T04:07:17.3823194+02:00</WTRJamStartTime>
          <WTRJamEndTime>2024-06-14T04:07:17.3823194+02:00</WTRJamEndTime>
          <WTRJamMaintainerID>sample string 3</WTRJamMaintainerID>
          <WTRJamMaintenanceStartTime>2024-06-14T04:07:17.3823194+02:00</WTRJamMaintenanceStartTime>
          <WTRJamStatus>1</WTRJamStatus>
        </JamLine>
        <JamLine>
          <WTRJamLineNoID>1</WTRJamLineNoID>
          <WTRID>1</WTRID>
          <WTRLineNoID>1</WTRLineNoID>
          <WTRJamID>sample string 1</WTRJamID>
          <WTRJamNote>sample string 2</WTRJamNote>
          <WTRJamStartTime>2024-06-14T04:07:17.3823194+02:00</WTRJamStartTime>
          <WTRJamEndTime>2024-06-14T04:07:17.3823194+02:00</WTRJamEndTime>
          <WTRJamMaintainerID>sample string 3</WTRJamMaintainerID>
          <WTRJamMaintenanceStartTime>2024-06-14T04:07:17.3823194+02:00</WTRJamMaintenanceStartTime>
          <WTRJamStatus>1</WTRJamStatus>
        </JamLine>
      </JamLines>
      <ScrapLines>
        <ScrapLine>
          <WTRScrapID>1</WTRScrapID>
          <WTRID>1</WTRID>
          <WTRLineNoID>1</WTRLineNoID>
          <WTRScrapReasonID>sample string 1</WTRScrapReasonID>
          <WTRScrapNote>sample string 2</WTRScrapNote>
          <WTRScrapQty>1</WTRScrapQty>
          <WTRScrapStatus>1</WTRScrapStatus>
        </ScrapLine>
        <ScrapLine>
          <WTRScrapID>1</WTRScrapID>
          <WTRID>1</WTRID>
          <WTRLineNoID>1</WTRLineNoID>
          <WTRScrapReasonID>sample string 1</WTRScrapReasonID>
          <WTRScrapNote>sample string 2</WTRScrapNote>
          <WTRScrapQty>1</WTRScrapQty>
          <WTRScrapStatus>1</WTRScrapStatus>
        </ScrapLine>
      </ScrapLines>
    </WTRLine>
    <WTRLine>
      <WTRID>1</WTRID>
      <WTRLineNoID>1</WTRLineNoID>
      <WorkOrderOperationLNr>1</WorkOrderOperationLNr>
      <WorkOrderBook>sample string 1</WorkOrderBook>
      <WorkOrderYear>1</WorkOrderYear>
      <WorkOrderNumber>1</WorkOrderNumber>
      <WorkOrderOperationID>1</WorkOrderOperationID>
      <WorkOrderOperationStOpID>sample string 2</WorkOrderOperationStOpID>
      <StOperationGroupID>sample string 3</StOperationGroupID>
      <LineStatus>1</LineStatus>
      <Qty>1</Qty>
      <ScrapQty>1</ScrapQty>
      <StartTime>2024-06-14T04:07:17.3823194+02:00</StartTime>
      <EndTime>2024-06-14T04:07:17.3823194+02:00</EndTime>
      <TotalTime>1</TotalTime>
      <SetUpOperation>true</SetUpOperation>
      <Overtime>true</Overtime>
      <ExcludeSalary>true</ExcludeSalary>
      <WorkStationID>sample string 7</WorkStationID>
      <WorkFactor>1</WorkFactor>
      <ItemID>sample string 8</ItemID>
      <UnplanedStOpID>sample string 9</UnplanedStOpID>
      <WTRLNote>sample string 10</WTRLNote>
      <JamLines>
        <JamLine>
          <WTRJamLineNoID>1</WTRJamLineNoID>
          <WTRID>1</WTRID>
          <WTRLineNoID>1</WTRLineNoID>
          <WTRJamID>sample string 1</WTRJamID>
          <WTRJamNote>sample string 2</WTRJamNote>
          <WTRJamStartTime>2024-06-14T04:07:17.3823194+02:00</WTRJamStartTime>
          <WTRJamEndTime>2024-06-14T04:07:17.3823194+02:00</WTRJamEndTime>
          <WTRJamMaintainerID>sample string 3</WTRJamMaintainerID>
          <WTRJamMaintenanceStartTime>2024-06-14T04:07:17.3823194+02:00</WTRJamMaintenanceStartTime>
          <WTRJamStatus>1</WTRJamStatus>
        </JamLine>
        <JamLine>
          <WTRJamLineNoID>1</WTRJamLineNoID>
          <WTRID>1</WTRID>
          <WTRLineNoID>1</WTRLineNoID>
          <WTRJamID>sample string 1</WTRJamID>
          <WTRJamNote>sample string 2</WTRJamNote>
          <WTRJamStartTime>2024-06-14T04:07:17.3823194+02:00</WTRJamStartTime>
          <WTRJamEndTime>2024-06-14T04:07:17.3823194+02:00</WTRJamEndTime>
          <WTRJamMaintainerID>sample string 3</WTRJamMaintainerID>
          <WTRJamMaintenanceStartTime>2024-06-14T04:07:17.3823194+02:00</WTRJamMaintenanceStartTime>
          <WTRJamStatus>1</WTRJamStatus>
        </JamLine>
      </JamLines>
      <ScrapLines>
        <ScrapLine>
          <WTRScrapID>1</WTRScrapID>
          <WTRID>1</WTRID>
          <WTRLineNoID>1</WTRLineNoID>
          <WTRScrapReasonID>sample string 1</WTRScrapReasonID>
          <WTRScrapNote>sample string 2</WTRScrapNote>
          <WTRScrapQty>1</WTRScrapQty>
          <WTRScrapStatus>1</WTRScrapStatus>
        </ScrapLine>
        <ScrapLine>
          <WTRScrapID>1</WTRScrapID>
          <WTRID>1</WTRID>
          <WTRLineNoID>1</WTRLineNoID>
          <WTRScrapReasonID>sample string 1</WTRScrapReasonID>
          <WTRScrapNote>sample string 2</WTRScrapNote>
          <WTRScrapQty>1</WTRScrapQty>
          <WTRScrapStatus>1</WTRScrapStatus>
        </ScrapLine>
      </ScrapLines>
    </WTRLine>
  </WTRLines>
</WTRHeader>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateResult
NameDescriptionTypeAdditional information
Keys

Collection of EntityKeyField

None.

ResultCode

ExternalResultCode

None.

Errors

Collection of Error

None.

Response Formats

application/xml, text/xml

Sample:
<CreateResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Keys>
    <Key>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
    </Key>
    <Key>
      <Name>sample string 1</Name>
      <Value>sample string 2</Value>
    </Key>
  </Keys>
  <ResultCode>None</ResultCode>
  <Errors>
    <Error>
      <Level>Warning</Level>
      <Message>sample string 1</Message>
    </Error>
    <Error>
      <Level>Warning</Level>
      <Message>sample string 1</Message>
    </Error>
  </Errors>
</CreateResult>