PUT api/WorkOrders/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

WorkOrder
NameDescriptionTypeAdditional information
WorkOrderId

integer

None.

LegacyWorkOrderId

integer

None.

UtilityId

integer

None.

UnitId

integer

None.

WorkOrderTitle

string

Max length: 255

DueDate

date

None.

AssignedTo

integer

None.

Status

string

Max length: 1

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

StatusDescription

string

None.

CreatedByName

string

None.

AssignedToName

string

None.

PropertyName

string

None.

UnitName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "WorkOrderId": 1,
  "LegacyWorkOrderId": 2,
  "UtilityId": 3,
  "UnitId": 4,
  "WorkOrderTitle": "sample string 5",
  "DueDate": "2020-01-24T11:50:40.5801269+00:00",
  "AssignedTo": 7,
  "Status": "sample string 8",
  "DateCreated": "2020-01-24T11:50:40.5801269+00:00",
  "DateUpdated": "2020-01-24T11:50:40.5801269+00:00",
  "CreatedBy": 11,
  "UpdatedBy": 12,
  "StatusDescription": "sample string 13",
  "CreatedByName": "sample string 14",
  "AssignedToName": "sample string 15",
  "PropertyName": "sample string 16",
  "UnitName": "sample string 17"
}

application/xml, text/xml

Sample:
<WorkOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <AssignedTo>7</AssignedTo>
  <AssignedToName>sample string 15</AssignedToName>
  <CreatedBy>11</CreatedBy>
  <CreatedByName>sample string 14</CreatedByName>
  <DateCreated>2020-01-24T11:50:40.5801269+00:00</DateCreated>
  <DateUpdated>2020-01-24T11:50:40.5801269+00:00</DateUpdated>
  <DueDate>2020-01-24T11:50:40.5801269+00:00</DueDate>
  <LegacyWorkOrderId>2</LegacyWorkOrderId>
  <PropertyName>sample string 16</PropertyName>
  <Status>sample string 8</Status>
  <StatusDescription>sample string 13</StatusDescription>
  <UnitId>4</UnitId>
  <UnitName>sample string 17</UnitName>
  <UpdatedBy>12</UpdatedBy>
  <UtilityId>3</UtilityId>
  <WorkOrderId>1</WorkOrderId>
  <WorkOrderTitle>sample string 5</WorkOrderTitle>
</WorkOrder>

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 'WorkOrder'.

Response Information

Resource Description

None.