PUT api/ServiceTicketPart/{id}

Update a specific Service Ticket Part record by ServiceTicketPartId A successful delete while return status code 204 (No Content). Not object is returned unless there is an error.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ServiceTicketPart
NameDescriptionTypeAdditional information
ServiceTicketPartId

Sedona internal autonumber for the SV_Service_Ticket_Parts record (assigned automatically on POST)

integer

None.

ServiceTicketNumber

Service Ticket Number from SV_Service_Ticket table

integer

Required

PartCode

Abbreviated Part_Code, from IN_Part table

string

Required

String length: inclusive between 0 and 25

PartDescription

Part Description, from IN_Part table

string

String length: inclusive between 0 and 50

Quantity

Quantity of the Part

decimal number

Required

Rate

Rate

decimal number

Required

Location

Location; can be blank

string

None.

ServiceTechCode

Employee_Code from SY_Employee table; defaults to N/A if not supplied

string

None.

FromStock

Defaults to False if not supplied

boolean

None.

SerialNumber

Serial Number for this part

string

String length: inclusive between 0 and 50

LotNumber

Lot Number for this part

string

String length: inclusive between 0 and 50

WarehouseCode

value from IN_Warehouse; setting this will relieve inventory (if specified, part must have inventory in this Warehouse); defaults to N/A if not supplied

string

None.

TaxExempt

specifies if the item is tax exempt

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ServiceTicketPartId": 1,
  "ServiceTicketNumber": 2,
  "PartCode": "sample string 3",
  "PartDescription": "sample string 4",
  "Quantity": 1.1,
  "Rate": 5.0,
  "Location": "sample string 6",
  "ServiceTechCode": "sample string 7",
  "FromStock": true,
  "SerialNumber": "sample string 8",
  "LotNumber": "sample string 9",
  "WarehouseCode": "sample string 10",
  "TaxExempt": true
}

application/xml, text/xml

Sample:
<ServiceTicketPart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models">
  <FromStock>true</FromStock>
  <Location>sample string 6</Location>
  <LotNumber>sample string 9</LotNumber>
  <PartCode>sample string 3</PartCode>
  <PartDescription>sample string 4</PartDescription>
  <Quantity>1.1</Quantity>
  <Rate>5</Rate>
  <SerialNumber>sample string 8</SerialNumber>
  <ServiceTechCode>sample string 7</ServiceTechCode>
  <ServiceTicketNumber>2</ServiceTicketNumber>
  <ServiceTicketPartId>1</ServiceTicketPartId>
  <TaxExempt>true</TaxExempt>
  <WarehouseCode>sample string 10</WarehouseCode>
</ServiceTicketPart>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.