GET api/WorkOrders?UtilityId={UtilityId}&Start={Start}&End={End}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
UtilityId

integer

Required

Start

date

Required

End

date

Required

Body Parameters

None.

Response Information

Resource Description

Collection of 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.

Response Formats

application/json, text/json

Sample:
[
  {
    "WorkOrderId": 1,
    "LegacyWorkOrderId": 2,
    "UtilityId": 3,
    "UnitId": 4,
    "WorkOrderTitle": "sample string 5",
    "DueDate": "2020-08-28T19:54:26.0839095+00:00",
    "AssignedTo": 7,
    "Status": "sample string 8",
    "DateCreated": "2020-08-28T19:54:26.0839095+00:00",
    "DateUpdated": "2020-08-28T19:54:26.0839095+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"
  },
  {
    "WorkOrderId": 1,
    "LegacyWorkOrderId": 2,
    "UtilityId": 3,
    "UnitId": 4,
    "WorkOrderTitle": "sample string 5",
    "DueDate": "2020-08-28T19:54:26.0839095+00:00",
    "AssignedTo": 7,
    "Status": "sample string 8",
    "DateCreated": "2020-08-28T19:54:26.0839095+00:00",
    "DateUpdated": "2020-08-28T19:54:26.0839095+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:
<ArrayOfWorkOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <WorkOrder>
    <AssignedTo>7</AssignedTo>
    <AssignedToName>sample string 15</AssignedToName>
    <CreatedBy>11</CreatedBy>
    <CreatedByName>sample string 14</CreatedByName>
    <DateCreated>2020-08-28T19:54:26.0839095+00:00</DateCreated>
    <DateUpdated>2020-08-28T19:54:26.0839095+00:00</DateUpdated>
    <DueDate>2020-08-28T19:54:26.0839095+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>
  <WorkOrder>
    <AssignedTo>7</AssignedTo>
    <AssignedToName>sample string 15</AssignedToName>
    <CreatedBy>11</CreatedBy>
    <CreatedByName>sample string 14</CreatedByName>
    <DateCreated>2020-08-28T19:54:26.0839095+00:00</DateCreated>
    <DateUpdated>2020-08-28T19:54:26.0839095+00:00</DateUpdated>
    <DueDate>2020-08-28T19:54:26.0839095+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>
</ArrayOfWorkOrder>