POST api/vehicles/{id}/repairs

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

InventoryRepairSubModel
NameDescriptionTypeAdditional information
CheckNo

integer

None.

VendorName

string

None.

DatePaid

date

None.

Comment

string

None.

Amount

decimal number

None.

CategoryName

string

None.

BillID

integer

None.

Imported

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CheckNo": 1,
  "VendorName": "sample string 2",
  "DatePaid": "2025-07-05T08:27:08.1825522+00:00",
  "Comment": "sample string 4",
  "Amount": 5.0,
  "CategoryName": "sample string 6",
  "BillID": 7,
  "Imported": true
}

application/xml, text/xml

Sample:
<InventoryRepairSubModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Automatrix.DMS.Business.Entities.SubModels">
  <Amount>5</Amount>
  <BillID>7</BillID>
  <CategoryName>sample string 6</CategoryName>
  <CheckNo>1</CheckNo>
  <Comment>sample string 4</Comment>
  <DatePaid>2025-07-05T08:27:08.1825522+00:00</DatePaid>
  <Imported>true</Imported>
  <VendorName>sample string 2</VendorName>
</InventoryRepairSubModel>

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

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.