POST api/IFMBridge/workOrders/{workOrderIdOrNumber}/updateWorkOrderLink

Request Information

URI Parameters

NameDescriptionTypeAdditional information
workOrderIdOrNumber

string

Required

Body Parameters

WorkOrdersLinkViewModel
NameDescriptionTypeAdditional information
WorkOrderId

integer None.
ScheduledStartDateTime

date None.
TargetStartDateTime

date None.
TargetCompleteDateTime

date None.
NextFollowUpDateTime

date None.
LinkedWorkOrderId

integer None.
LinkedClientId

integer None.
LinkedWorkOrderNumber

string None.
OriginalLinkedWorkOrderNumber

string None.

Request Formats

application/json, text/json

Sample:
{
  "workOrderId": 1,
  "scheduledStartDateTime": "2024-09-21T03:17:21.0133367Z",
  "targetStartDateTime": "2024-09-21T03:17:21.0133367Z",
  "targetCompleteDateTime": "2024-09-21T03:17:21.0133367Z",
  "nextFollowUpDateTime": "2024-09-21T03:17:21.0133367Z",
  "linkedWorkOrderId": 2,
  "linkedClientId": 3,
  "linkedWorkOrderNumber": "sample string 4",
  "originalLinkedWorkOrderNumber": "sample string 5"
}

application/xml, text/xml

Sample:
<WorkOrdersLinkViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ControlESI.FMPilot.Core.Entities.IFMBridge">
  <LinkedClientId>3</LinkedClientId>
  <LinkedWorkOrderId>2</LinkedWorkOrderId>
  <LinkedWorkOrderNumber>sample string 4</LinkedWorkOrderNumber>
  <NextFollowUpDateTime>2024-09-21T03:17:21.0133367+00:00</NextFollowUpDateTime>
  <OriginalLinkedWorkOrderNumber>sample string 5</OriginalLinkedWorkOrderNumber>
  <ScheduledStartDateTime>2024-09-21T03:17:21.0133367+00:00</ScheduledStartDateTime>
  <TargetCompleteDateTime>2024-09-21T03:17:21.0133367+00:00</TargetCompleteDateTime>
  <TargetStartDateTime>2024-09-21T03:17:21.0133367+00:00</TargetStartDateTime>
  <WorkOrderId>1</WorkOrderId>
</WorkOrdersLinkViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'WorkOrdersLinkViewModel'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>