POST api/ContractorManagement/UpdateWorkOrder

Request Information

URI Parameters

None.

Body Parameters

WorkOrderView
NameDescriptionTypeAdditional information
WorkOrder_Code

integer

None.

Sys_Code

string

None.

Department_Code

integer

None.

HODUser_Code

integer

None.

AreaCoordinatorUser_Code

integer

None.

ParentWorkOrder_Code

integer

None.

CoveredECPolicy_Code

integer

None.

WorkOrderNo

string

None.

OrderTypeMaster_Code

integer

None.

OrderCategoryMaster_Code

integer

None.

OrderStartDate

date

None.

DisplayOrderStartDate

string

None.

OrderEndDate

date

None.

DisplayOrderEndDate

string

None.

OrderComplitedDate

date

None.

IsDirect

boolean

None.

Person

integer

None.

LOIRef_WorkOrder_Code

string

None.

Comment

string

None.

IsHrcApplicable

integer

None.

WorkTypeMaster_Code

integer

None.

ShortCode

string

None.

CreatedDate

date

None.

DisplayDate

string

None.

CreateBy

integer

None.

ModifiedDate

date

None.

ModifiedBy

integer

None.

IsActive

boolean

None.

IsDelete

boolean

None.

IsSync

boolean

None.

ID

integer

None.

AreaOfWorkMasterListCodes

Collection of integer

None.

NatureOfWorkMasterListCodes

Collection of integer

None.

PlantCodes

Collection of integer

None.

OrderOwnerUserCodes

Collection of integer

None.

OrderOwnerUserAndPrioritys

Collection of WorkOrderOwnerRelationView

None.

DocumentImageMasterViewModals

Collection of DocumentImageMasterViewModal

None.

PriorityLevel

integer

None.

TaskName

string

None.

EICUser

string

None.

Status

string

None.

HRCStatus

integer

None.

RoleCode

string

None.

SubContractorCode

integer

None.

ContractorCode

integer

None.

ParentWorkOrderCode

integer

None.

UserId

integer

None.

Company

string

None.

Request Formats

application/json, text/json

Sample:
{
  "WorkOrder_Code": 1,
  "Sys_Code": "sample string 2",
  "Department_Code": 1,
  "HODUser_Code": 1,
  "AreaCoordinatorUser_Code": 1,
  "ParentWorkOrder_Code": 1,
  "CoveredECPolicy_Code": 1,
  "WorkOrderNo": "sample string 3",
  "OrderTypeMaster_Code": 1,
  "OrderCategoryMaster_Code": 1,
  "OrderStartDate": "2025-12-28T06:19:21.5181226+00:00",
  "DisplayOrderStartDate": "12/28/2025",
  "OrderEndDate": "2025-12-28T06:19:21.5181226+00:00",
  "DisplayOrderEndDate": "12/28/2025",
  "OrderComplitedDate": "2025-12-28T06:19:21.5181226+00:00",
  "IsDirect": true,
  "Person": 1,
  "LOIRef_WorkOrder_Code": "sample string 5",
  "Comment": "sample string 6",
  "IsHrcApplicable": 1,
  "WorkTypeMaster_Code": 1,
  "ShortCode": "sample string 7",
  "CreatedDate": "2025-12-28T06:19:21.5181226+00:00",
  "DisplayDate": "12/28/2025",
  "CreateBy": 1,
  "ModifiedDate": "2025-12-28T06:19:21.5181226+00:00",
  "ModifiedBy": 1,
  "IsActive": true,
  "IsDelete": true,
  "IsSync": true,
  "ID": 11,
  "AreaOfWorkMasterListCodes": [
    1,
    2
  ],
  "NatureOfWorkMasterListCodes": [
    1,
    1
  ],
  "PlantCodes": [
    1,
    1
  ],
  "OrderOwnerUserCodes": [
    1,
    1
  ],
  "OrderOwnerUserAndPrioritys": [
    {
      "ID": 1,
      "OrderOwnerUser_Code": 1,
      "PriorityLevel": 1
    },
    {
      "ID": 1,
      "OrderOwnerUser_Code": 1,
      "PriorityLevel": 1
    }
  ],
  "DocumentImageMasterViewModals": [
    {
      "ID": 1,
      "Sys_Code": "sample string 1",
      "Page_Code": 1,
      "Referance_Code": 1,
      "RefTypeMasterList_Code": 1,
      "DocumentTypeMasterList_Code": 1,
      "ParentRootFolder": "sample string 2",
      "UploadFileName": "sample string 3",
      "IsVerify": true,
      "VerifyDate": "2025-12-28T06:19:21.5181226+00:00",
      "VerifyBy": 1,
      "CreatedDate": "2025-12-28T06:19:21.5181226+00:00",
      "CreateBy": 1,
      "ModifiedDate": "2025-12-28T06:19:21.5181226+00:00",
      "ModifiedBy": 1,
      "IsActive": true,
      "IsDelete": true,
      "IsSync": true
    },
    {
      "ID": 1,
      "Sys_Code": "sample string 1",
      "Page_Code": 1,
      "Referance_Code": 1,
      "RefTypeMasterList_Code": 1,
      "DocumentTypeMasterList_Code": 1,
      "ParentRootFolder": "sample string 2",
      "UploadFileName": "sample string 3",
      "IsVerify": true,
      "VerifyDate": "2025-12-28T06:19:21.5181226+00:00",
      "VerifyBy": 1,
      "CreatedDate": "2025-12-28T06:19:21.5181226+00:00",
      "CreateBy": 1,
      "ModifiedDate": "2025-12-28T06:19:21.5181226+00:00",
      "ModifiedBy": 1,
      "IsActive": true,
      "IsDelete": true,
      "IsSync": true
    }
  ],
  "PriorityLevel": 1,
  "TaskName": "sample string 12",
  "EICUser": "sample string 13",
  "Status": "sample string 14",
  "HRCStatus": 15,
  "RoleCode": "sample string 16",
  "SubContractorCode": 1,
  "ContractorCode": 1,
  "ParentWorkOrderCode": 1,
  "UserId": 17,
  "Company": "sample string 18"
}

application/xml, text/xml

Sample:
<WorkOrderView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModelHRMS">
  <AreaCoordinatorUser_Code>1</AreaCoordinatorUser_Code>
  <AreaOfWorkMasterListCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </AreaOfWorkMasterListCodes>
  <Comment>sample string 6</Comment>
  <Company>sample string 18</Company>
  <ContractorCode>1</ContractorCode>
  <CoveredECPolicy_Code>1</CoveredECPolicy_Code>
  <CreateBy>1</CreateBy>
  <CreatedDate>2025-12-28T06:19:21.5181226+00:00</CreatedDate>
  <Department_Code>1</Department_Code>
  <DocumentImageMasterViewModals>
    <DocumentImageMasterViewModal>
      <CreateBy>1</CreateBy>
      <CreatedDate>2025-12-28T06:19:21.5181226+00:00</CreatedDate>
      <DocumentTypeMasterList_Code>1</DocumentTypeMasterList_Code>
      <ID>1</ID>
      <IsActive>true</IsActive>
      <IsDelete>true</IsDelete>
      <IsSync>true</IsSync>
      <IsVerify>true</IsVerify>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedDate>2025-12-28T06:19:21.5181226+00:00</ModifiedDate>
      <Page_Code>1</Page_Code>
      <ParentRootFolder>sample string 2</ParentRootFolder>
      <RefTypeMasterList_Code>1</RefTypeMasterList_Code>
      <Referance_Code>1</Referance_Code>
      <Sys_Code>sample string 1</Sys_Code>
      <UploadFileName>sample string 3</UploadFileName>
      <VerifyBy>1</VerifyBy>
      <VerifyDate>2025-12-28T06:19:21.5181226+00:00</VerifyDate>
    </DocumentImageMasterViewModal>
    <DocumentImageMasterViewModal>
      <CreateBy>1</CreateBy>
      <CreatedDate>2025-12-28T06:19:21.5181226+00:00</CreatedDate>
      <DocumentTypeMasterList_Code>1</DocumentTypeMasterList_Code>
      <ID>1</ID>
      <IsActive>true</IsActive>
      <IsDelete>true</IsDelete>
      <IsSync>true</IsSync>
      <IsVerify>true</IsVerify>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedDate>2025-12-28T06:19:21.5181226+00:00</ModifiedDate>
      <Page_Code>1</Page_Code>
      <ParentRootFolder>sample string 2</ParentRootFolder>
      <RefTypeMasterList_Code>1</RefTypeMasterList_Code>
      <Referance_Code>1</Referance_Code>
      <Sys_Code>sample string 1</Sys_Code>
      <UploadFileName>sample string 3</UploadFileName>
      <VerifyBy>1</VerifyBy>
      <VerifyDate>2025-12-28T06:19:21.5181226+00:00</VerifyDate>
    </DocumentImageMasterViewModal>
  </DocumentImageMasterViewModals>
  <EICUser>sample string 13</EICUser>
  <HODUser_Code>1</HODUser_Code>
  <HRCStatus>15</HRCStatus>
  <ID>11</ID>
  <IsActive>true</IsActive>
  <IsDelete>true</IsDelete>
  <IsDirect>true</IsDirect>
  <IsHrcApplicable>1</IsHrcApplicable>
  <IsSync>true</IsSync>
  <LOIRef_WorkOrder_Code>sample string 5</LOIRef_WorkOrder_Code>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedDate>2025-12-28T06:19:21.5181226+00:00</ModifiedDate>
  <NatureOfWorkMasterListCodes xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>1</d2p1:long>
  </NatureOfWorkMasterListCodes>
  <OrderCategoryMaster_Code>1</OrderCategoryMaster_Code>
  <OrderComplitedDate>2025-12-28T06:19:21.5181226+00:00</OrderComplitedDate>
  <OrderEndDate>2025-12-28T06:19:21.5181226+00:00</OrderEndDate>
  <OrderOwnerUserAndPrioritys>
    <WorkOrderOwnerRelationView>
      <ID>1</ID>
      <OrderOwnerUser_Code>1</OrderOwnerUser_Code>
      <PriorityLevel>1</PriorityLevel>
    </WorkOrderOwnerRelationView>
    <WorkOrderOwnerRelationView>
      <ID>1</ID>
      <OrderOwnerUser_Code>1</OrderOwnerUser_Code>
      <PriorityLevel>1</PriorityLevel>
    </WorkOrderOwnerRelationView>
  </OrderOwnerUserAndPrioritys>
  <OrderOwnerUserCodes xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>1</d2p1:long>
  </OrderOwnerUserCodes>
  <OrderStartDate>2025-12-28T06:19:21.5181226+00:00</OrderStartDate>
  <OrderTypeMaster_Code>1</OrderTypeMaster_Code>
  <ParentWorkOrderCode>1</ParentWorkOrderCode>
  <ParentWorkOrder_Code>1</ParentWorkOrder_Code>
  <Person>1</Person>
  <PlantCodes xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>1</d2p1:long>
  </PlantCodes>
  <PriorityLevel>1</PriorityLevel>
  <RoleCode>sample string 16</RoleCode>
  <ShortCode>sample string 7</ShortCode>
  <Status>sample string 14</Status>
  <SubContractorCode>1</SubContractorCode>
  <Sys_Code>sample string 2</Sys_Code>
  <TaskName>sample string 12</TaskName>
  <UserId>17</UserId>
  <WorkOrderNo>sample string 3</WorkOrderNo>
  <WorkOrder_Code>1</WorkOrder_Code>
  <WorkTypeMaster_Code>1</WorkTypeMaster_Code>
</WorkOrderView>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultData
NameDescriptionTypeAdditional information
Msg

string

None.

Code

integer

None.

LabourCodes

Collection of integer

None.

rtnVal

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "Code": 2,
  "LabourCodes": [
    1,
    1
  ],
  "rtnVal": {}
}

application/xml, text/xml

Sample:
<ResultData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModelHRMS">
  <Code>2</Code>
  <LabourCodes xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>1</d2p1:long>
  </LabourCodes>
  <Msg>sample string 1</Msg>
  <rtnVal />
</ResultData>