PUT 17.0/database/workorders/{id}

Description

Update existing Work Orders

URI Parameters

Name Description Type Additional information
id

integer

Required

Name Description Type Additional information
ID

integer

None.

UserID

integer

None.

AssignedUserID

integer

None.

AddedDate

date

None.

DueDate

date

None.

CompletedDate

date

None.

UpdatedDate

date

None.

WorkOrderTypeID

integer

None.

Status

byte

None.

Priority

byte

None.

PropertyID

integer

None.

ContractorID

integer

None.

ContactID

integer

None.

Subject

string

String length: inclusive between 0 and 50

Body

string

None.

Notes

string

None.

Amount

decimal number

None.

Reference

string

String length: inclusive between 0 and 50

CompanyID

integer

None.

Pictures

string

None.

ExternalID

integer

None.

StatusDate

date

None.

CertificateID

integer

None.

application/json, text/json

Sample:
{
  "id": 1,
  "userID": 1,
  "assignedUserID": 1,
  "addedDate": "2025-01-09T20:16",
  "dueDate": "2025-01-09T20:16",
  "completedDate": "2025-01-09T20:16",
  "updatedDate": "2025-01-09T20:16",
  "workOrderTypeID": 1,
  "status": 64,
  "priority": 64,
  "propertyID": 1,
  "contractorID": 1,
  "contactID": 1,
  "subject": "sample string 1",
  "body": "sample string 2",
  "notes": "sample string 3",
  "amount": 1.0,
  "reference": "sample string 4",
  "companyID": 1,
  "pictures": "sample string 5",
  "externalID": 1,
  "statusDate": "2025-01-09T20:16",
  "certificateID": 1
}

application/xml, text/xml

Sample:
<WorkOrdersUpdate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <UserID>1</UserID>
  <AssignedUserID>1</AssignedUserID>
  <AddedDate>2025-01-09T20:16:12.9695037+00:00</AddedDate>
  <DueDate>2025-01-09T20:16:12.9695037+00:00</DueDate>
  <CompletedDate>2025-01-09T20:16:12.9695037+00:00</CompletedDate>
  <UpdatedDate>2025-01-09T20:16:12.9695037+00:00</UpdatedDate>
  <WorkOrderTypeID>1</WorkOrderTypeID>
  <Status>64</Status>
  <Priority>64</Priority>
  <PropertyID>1</PropertyID>
  <ContractorID>1</ContractorID>
  <ContactID>1</ContactID>
  <Subject>sample string 1</Subject>
  <Body>sample string 2</Body>
  <Notes>sample string 3</Notes>
  <Amount>1</Amount>
  <Reference>sample string 4</Reference>
  <CompanyID>1</CompanyID>
  <Pictures>sample string 5</Pictures>
  <ExternalID>1</ExternalID>
  <StatusDate>2025-01-09T20:16:12.9695037+00:00</StatusDate>
  <CertificateID>1</CertificateID>
</WorkOrdersUpdate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Name Description Type Additional information
ID

integer

None.

UserID

integer

None.

AssignedUserID

integer

None.

AddedDate

date

None.

DueDate

date

None.

CompletedDate

date

None.

UpdatedDate

date

None.

WorkOrderTypeID

integer

None.

Status

byte

None.

Priority

byte

None.

PropertyID

integer

None.

ContractorID

integer

None.

ContactID

integer

None.

Subject

string

String length: inclusive between 0 and 50

Body

string

None.

Notes

string

None.

Amount

decimal number

None.

Reference

string

String length: inclusive between 0 and 50

CompanyID

integer

None.

Pictures

string

None.

ExternalID

integer

None.

StatusDate

date

None.

CertificateID

integer

None.

application/json, text/json

Sample:
{
  "id": 1,
  "userID": 2,
  "assignedUserID": 3,
  "addedDate": "2025-01-09T20:16",
  "dueDate": "2025-01-09T20:16",
  "completedDate": "2025-01-09T20:16",
  "updatedDate": "2025-01-09T20:16",
  "workOrderTypeID": 8,
  "status": 64,
  "priority": 64,
  "propertyID": 11,
  "contractorID": 12,
  "contactID": 13,
  "subject": "sample string 14",
  "body": "sample string 15",
  "notes": "sample string 16",
  "amount": 17.0,
  "reference": "sample string 18",
  "companyID": 19,
  "pictures": "sample string 20",
  "externalID": 21,
  "statusDate": "2025-01-09T20:16",
  "certificateID": 23
}

application/xml, text/xml

Sample:
<WorkOrders xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <UserID>2</UserID>
  <AssignedUserID>3</AssignedUserID>
  <AddedDate>2025-01-09T20:16:12.9695037+00:00</AddedDate>
  <DueDate>2025-01-09T20:16:12.9695037+00:00</DueDate>
  <CompletedDate>2025-01-09T20:16:12.9695037+00:00</CompletedDate>
  <UpdatedDate>2025-01-09T20:16:12.9695037+00:00</UpdatedDate>
  <WorkOrderTypeID>8</WorkOrderTypeID>
  <Status>64</Status>
  <Priority>64</Priority>
  <PropertyID>11</PropertyID>
  <ContractorID>12</ContractorID>
  <ContactID>13</ContactID>
  <Subject>sample string 14</Subject>
  <Body>sample string 15</Body>
  <Notes>sample string 16</Notes>
  <Amount>17</Amount>
  <Reference>sample string 18</Reference>
  <CompanyID>19</CompanyID>
  <Pictures>sample string 20</Pictures>
  <ExternalID>21</ExternalID>
  <StatusDate>2025-01-09T20:16:12.9695037+00:00</StatusDate>
  <CertificateID>23</CertificateID>
</WorkOrders>