PUT api/JobTemplate/Put
Request Information
URI Parameters
None.
Body Parameters
ServiceOpCodesTable| Name | Description | Type | Additional information |
|---|---|---|---|
| ServiceOpCodesDetail | Collection of ServiceOpCodesDetailTable |
None. |
|
| OpCodeID | integer |
None. |
|
| OpCode | string |
None. |
|
| Description | string |
None. |
|
| CustomerStates | string |
None. |
|
| Cause | string |
None. |
|
| Correction | string |
None. |
|
| Note | string |
None. |
|
| Hours | decimal number |
None. |
|
| SubletPrice | decimal number |
None. |
|
| SubletCost | decimal number |
None. |
|
| PartsList | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ServiceOpCodesDetail": [
{
"Description": "sample string 1",
"PartCost": 2.0,
"ListPrice": 3.0,
"NetPrice": 4.0,
"Active": true,
"JobTemplateDetailId": 6,
"JobTemplateId": 7,
"PartStockNumber": "sample string 8",
"Quantity": 9,
"PartInventoryId": 10
},
{
"Description": "sample string 1",
"PartCost": 2.0,
"ListPrice": 3.0,
"NetPrice": 4.0,
"Active": true,
"JobTemplateDetailId": 6,
"JobTemplateId": 7,
"PartStockNumber": "sample string 8",
"Quantity": 9,
"PartInventoryId": 10
}
],
"OpCodeID": 1,
"OpCode": "sample string 2",
"Description": "sample string 3",
"CustomerStates": "sample string 4",
"Cause": "sample string 5",
"Correction": "sample string 6",
"Note": "sample string 7",
"Hours": 8.1,
"SubletPrice": 9.0,
"SubletCost": 10.0,
"PartsList": "sample string 11"
}
application/xml, text/xml
Sample:
<ServiceOpCodesTable xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Automatrix.MPI.Business.Entities">
<Cause>sample string 5</Cause>
<Correction>sample string 6</Correction>
<CustomerStates>sample string 4</CustomerStates>
<Description>sample string 3</Description>
<Hours>8.1</Hours>
<Note>sample string 7</Note>
<OpCode>sample string 2</OpCode>
<OpCodeID>1</OpCodeID>
<PartsList>sample string 11</PartsList>
<ServiceOpCodesDetail>
<ServiceOpCodesDetailTable>
<Active>true</Active>
<Description>sample string 1</Description>
<JobTemplateDetailId>6</JobTemplateDetailId>
<JobTemplateId>7</JobTemplateId>
<ListPrice>3</ListPrice>
<NetPrice>4</NetPrice>
<PartCost>2</PartCost>
<PartInventoryId>10</PartInventoryId>
<PartStockNumber>sample string 8</PartStockNumber>
<Quantity>9</Quantity>
</ServiceOpCodesDetailTable>
<ServiceOpCodesDetailTable>
<Active>true</Active>
<Description>sample string 1</Description>
<JobTemplateDetailId>6</JobTemplateDetailId>
<JobTemplateId>7</JobTemplateId>
<ListPrice>3</ListPrice>
<NetPrice>4</NetPrice>
<PartCost>2</PartCost>
<PartInventoryId>10</PartInventoryId>
<PartStockNumber>sample string 8</PartStockNumber>
<Quantity>9</Quantity>
</ServiceOpCodesDetailTable>
</ServiceOpCodesDetail>
<SubletCost>10</SubletCost>
<SubletPrice>9</SubletPrice>
</ServiceOpCodesTable>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |