POST api/services/{id}/jobs/{jobNumber}/parts

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

jobNumber

integer

Required

Body Parameters

ServiceJobPart
NameDescriptionTypeAdditional information
ServiceJobPartsId

integer

None.

InvoiceNumber

integer

None.

JobNumber

integer

None.

PartStockNumber

string

None.

Quantity

integer

None.

Description

string

None.

ListPrice

decimal number

None.

NetPrice

decimal number

None.

Total

decimal number

None.

PartCost

decimal number

None.

PartInventoryId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ServiceJobPartsId": 1,
  "InvoiceNumber": 2,
  "JobNumber": 3,
  "PartStockNumber": "sample string 4",
  "Quantity": 5,
  "Description": "sample string 6",
  "ListPrice": 7.0,
  "NetPrice": 8.0,
  "Total": 9.0,
  "PartCost": 10.0,
  "PartInventoryId": 11
}

application/xml, text/xml

Sample:
<ServiceJobPart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Automatrix.DMS.Business.Entities">
  <Description>sample string 6</Description>
  <InvoiceNumber>2</InvoiceNumber>
  <JobNumber>3</JobNumber>
  <ListPrice>7</ListPrice>
  <NetPrice>8</NetPrice>
  <PartCost>10</PartCost>
  <PartInventoryId>11</PartInventoryId>
  <PartStockNumber>sample string 4</PartStockNumber>
  <Quantity>5</Quantity>
  <ServiceJobPartsId>1</ServiceJobPartsId>
  <Total>9</Total>
</ServiceJobPart>

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 'ServiceJobPart'

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.