POST api/Tyre/UpdateTyre

Request Information

URI Parameters

None.

Body Parameters

TyreVM
NameDescriptionTypeAdditional information
ID

integer

None.

AspectRatio

string

None.

RimWidth

decimal number

None.

TyreSize

decimal number

None.

TyrePattern

string

None.

TreadDepth

decimal number

None.

CordAngle

decimal number

None.

SectionWidth

decimal number

None.

RimDiameter

string

None.

SpeedSymbol

string

None.

LoadIndex

string

None.

RFID

string

None.

ModelNo

string

None.

BrandName

string

None.

MaxLoad

decimal number

None.

MaxSpeed

decimal number

None.

MaxPressure

decimal number

None.

LegalLimitKM

integer

None.

CurrentLegalLimitKM

integer

None.

AddedBy

integer

None.

UpdatedBy

integer

None.

AddedOn

date

None.

UpdatedOn

date

None.

GraceAlertDistance

integer

None.

GraceAlertTime

integer

None.

WarrantyDistance

integer

None.

WarrantiyTime

integer

None.

TyreLifeTime

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "AspectRatio": "sample string 2",
  "RimWidth": 3.1,
  "TyreSize": 4.1,
  "TyrePattern": "sample string 5",
  "TreadDepth": 6.1,
  "CordAngle": 7.1,
  "SectionWidth": 8.1,
  "RimDiameter": "sample string 9",
  "SpeedSymbol": "sample string 10",
  "LoadIndex": "sample string 11",
  "RFID": "sample string 12",
  "ModelNo": "sample string 13",
  "BrandName": "sample string 14",
  "MaxLoad": 15.1,
  "MaxSpeed": 16.1,
  "MaxPressure": 17.1,
  "LegalLimitKM": 18,
  "CurrentLegalLimitKM": 19,
  "AddedBy": 20,
  "UpdatedBy": 21,
  "AddedOn": "2025-09-10T14:35:25.2065613+05:00",
  "UpdatedOn": "2025-09-10T14:35:25.2065613+05:00",
  "GraceAlertDistance": 24,
  "GraceAlertTime": 25,
  "WarrantyDistance": 26,
  "WarrantiyTime": 27,
  "TyreLifeTime": 28
}

application/xml, text/xml

Sample:
<TyreVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TWViewModel">
  <AddedBy>20</AddedBy>
  <AddedOn>2025-09-10T14:35:25.2065613+05:00</AddedOn>
  <AspectRatio>sample string 2</AspectRatio>
  <BrandName>sample string 14</BrandName>
  <CordAngle>7.1</CordAngle>
  <CurrentLegalLimitKM>19</CurrentLegalLimitKM>
  <GraceAlertDistance>24</GraceAlertDistance>
  <GraceAlertTime>25</GraceAlertTime>
  <ID>1</ID>
  <LegalLimitKM>18</LegalLimitKM>
  <LoadIndex>sample string 11</LoadIndex>
  <MaxLoad>15.1</MaxLoad>
  <MaxPressure>17.1</MaxPressure>
  <MaxSpeed>16.1</MaxSpeed>
  <ModelNo>sample string 13</ModelNo>
  <RFID>sample string 12</RFID>
  <RimDiameter>sample string 9</RimDiameter>
  <RimWidth>3.1</RimWidth>
  <SectionWidth>8.1</SectionWidth>
  <SpeedSymbol>sample string 10</SpeedSymbol>
  <TreadDepth>6.1</TreadDepth>
  <TyreLifeTime>28</TyreLifeTime>
  <TyrePattern>sample string 5</TyrePattern>
  <TyreSize>4.1</TyreSize>
  <UpdatedBy>21</UpdatedBy>
  <UpdatedOn>2025-09-10T14:35:25.2065613+05:00</UpdatedOn>
  <WarrantiyTime>27</WarrantiyTime>
  <WarrantyDistance>26</WarrantyDistance>
</TyreVM>

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

Response Information

Resource Description

TWJsonResult
NameDescriptionTypeAdditional information
ErrorMsg

string

None.

IsValid

boolean

None.

Result

Object

None.

TotalRows

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorMsg": "sample string 1",
  "IsValid": true,
  "Result": {},
  "TotalRows": 4
}

application/xml, text/xml

Sample:
<TWJsonResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TWJsonResults">
  <ErrorMsg>sample string 1</ErrorMsg>
  <IsValid>true</IsValid>
  <Result />
  <TotalRows>4</TotalRows>
</TWJsonResult>