PATCH api-token/WorkOrders/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

WorkOrderHeader
NameDescriptionTypeAdditional information
RecordID

integer

None.

No

string

None.

WorkOrderType

integer

None.

WorkOrderStatus

integer

None.

WorkOrderStatusName

string

None.

CreatedBy

string

None.

CreatedDateTime

date

None.

UpdatedBy

string

None.

UpdatedDateTime

date

None.

Deleted

boolean

None.

DeletedBy

string

None.

DeletedDateTime

date

None.

AssignedTechId

string

None.

AssignedTechFirstName

string

None.

AssignedTechLastName

string

None.

AssignedTechFullName

string

None.

AssignedTechCompany

string

None.

AssignedTechPhone

string

None.

AssignedTechEmail

string

None.

CustomerNo

string

None.

CustomerName

string

None.

CustomerAddress

string

None.

CustomerAddress2

string

None.

CustomerCity

string

None.

CustomerState

string

None.

CustomerZip

string

None.

CustomerCountry

string

None.

ServiceCompanyNo

string

None.

ServiceCompanyName

string

None.

ServiceNo

string

None.

ServiceName

string

None.

ServiceAddress

string

None.

ServiceAddress2

string

None.

ServiceCity

string

None.

ServiceState

string

None.

ServiceZip

string

None.

ServiceCountry

string

None.

ContactNo

string

None.

ContactName

string

None.

ContactPhone

string

None.

ContactEmail

string

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordID": 1,
  "No": "sample string 1",
  "WorkOrderType": 1,
  "WorkOrderStatus": 1,
  "WorkOrderStatusName": "sample string 2",
  "CreatedBy": "sample string 3",
  "CreatedDateTime": "2025-12-26T15:55:19.4563256-05:00",
  "UpdatedBy": "sample string 4",
  "UpdatedDateTime": "2025-12-26T15:55:19.4563256-05:00",
  "Deleted": true,
  "DeletedBy": "sample string 5",
  "DeletedDateTime": "2025-12-26T15:55:19.4563256-05:00",
  "AssignedTechId": "sample string 6",
  "AssignedTechFirstName": "sample string 7",
  "AssignedTechLastName": "sample string 8",
  "AssignedTechFullName": null,
  "AssignedTechCompany": "sample string 9",
  "AssignedTechPhone": "sample string 10",
  "AssignedTechEmail": "sample string 11",
  "CustomerNo": "sample string 12",
  "CustomerName": "sample string 13",
  "CustomerAddress": "sample string 14",
  "CustomerAddress2": "sample string 15",
  "CustomerCity": "sample string 16",
  "CustomerState": "sample string 17",
  "CustomerZip": "sample string 18",
  "CustomerCountry": "sample string 19",
  "ServiceCompanyNo": "sample string 20",
  "ServiceCompanyName": "sample string 21",
  "ServiceNo": "sample string 22",
  "ServiceName": "sample string 23",
  "ServiceAddress": "sample string 24",
  "ServiceAddress2": "sample string 25",
  "ServiceCity": "sample string 26",
  "ServiceState": "sample string 27",
  "ServiceZip": "sample string 28",
  "ServiceCountry": "sample string 29",
  "ContactNo": "sample string 30",
  "ContactName": "sample string 31",
  "ContactPhone": "sample string 32",
  "ContactEmail": "sample string 33"
}

text/html

Sample:
{"RecordID":1,"No":"sample string 1","WorkOrderType":1,"WorkOrderStatus":1,"WorkOrderStatusName":"sample string 2","CreatedBy":"sample string 3","CreatedDateTime":"2025-12-26T15:55:19.4563256-05:00","UpdatedBy":"sample string 4","UpdatedDateTime":"2025-12-26T15:55:19.4563256-05:00","Deleted":true,"DeletedBy":"sample string 5","DeletedDateTime":"2025-12-26T15:55:19.4563256-05:00","AssignedTechId":"sample string 6","AssignedTechFirstName":"sample string 7","AssignedTechLastName":"sample string 8","AssignedTechFullName":null,"AssignedTechCompany":"sample string 9","AssignedTechPhone":"sample string 10","AssignedTechEmail":"sample string 11","CustomerNo":"sample string 12","CustomerName":"sample string 13","CustomerAddress":"sample string 14","CustomerAddress2":"sample string 15","CustomerCity":"sample string 16","CustomerState":"sample string 17","CustomerZip":"sample string 18","CustomerCountry":"sample string 19","ServiceCompanyNo":"sample string 20","ServiceCompanyName":"sample string 21","ServiceNo":"sample string 22","ServiceName":"sample string 23","ServiceAddress":"sample string 24","ServiceAddress2":"sample string 25","ServiceCity":"sample string 26","ServiceState":"sample string 27","ServiceZip":"sample string 28","ServiceCountry":"sample string 29","ContactNo":"sample string 30","ContactName":"sample string 31","ContactPhone":"sample string 32","ContactEmail":"sample string 33"}

application/xml, text/xml

Sample:
<WorkOrderHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TUS_API.Models">
  <AssignedTechCompany>sample string 9</AssignedTechCompany>
  <AssignedTechEmail>sample string 11</AssignedTechEmail>
  <AssignedTechFirstName>sample string 7</AssignedTechFirstName>
  <AssignedTechId>sample string 6</AssignedTechId>
  <AssignedTechLastName>sample string 8</AssignedTechLastName>
  <AssignedTechPhone>sample string 10</AssignedTechPhone>
  <ContactEmail>sample string 33</ContactEmail>
  <ContactName>sample string 31</ContactName>
  <ContactNo>sample string 30</ContactNo>
  <ContactPhone>sample string 32</ContactPhone>
  <CreatedBy>sample string 3</CreatedBy>
  <CreatedDateTime>2025-12-26T15:55:19.4563256-05:00</CreatedDateTime>
  <CustomerAddress>sample string 14</CustomerAddress>
  <CustomerAddress2>sample string 15</CustomerAddress2>
  <CustomerCity>sample string 16</CustomerCity>
  <CustomerCountry>sample string 19</CustomerCountry>
  <CustomerName>sample string 13</CustomerName>
  <CustomerNo>sample string 12</CustomerNo>
  <CustomerState>sample string 17</CustomerState>
  <CustomerZip>sample string 18</CustomerZip>
  <Deleted>true</Deleted>
  <DeletedBy>sample string 5</DeletedBy>
  <DeletedDateTime>2025-12-26T15:55:19.4563256-05:00</DeletedDateTime>
  <No>sample string 1</No>
  <RecordID>1</RecordID>
  <ServiceAddress>sample string 24</ServiceAddress>
  <ServiceAddress2>sample string 25</ServiceAddress2>
  <ServiceCity>sample string 26</ServiceCity>
  <ServiceCompanyName>sample string 21</ServiceCompanyName>
  <ServiceCompanyNo>sample string 20</ServiceCompanyNo>
  <ServiceCountry>sample string 29</ServiceCountry>
  <ServiceName>sample string 23</ServiceName>
  <ServiceNo>sample string 22</ServiceNo>
  <ServiceState>sample string 27</ServiceState>
  <ServiceZip>sample string 28</ServiceZip>
  <UpdatedBy>sample string 4</UpdatedBy>
  <UpdatedDateTime>2025-12-26T15:55:19.4563256-05:00</UpdatedDateTime>
  <WorkOrderStatus>1</WorkOrderStatus>
  <WorkOrderStatusName>sample string 2</WorkOrderStatusName>
  <WorkOrderType>1</WorkOrderType>
</WorkOrderHeader>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.