POST v1/Policies/Details/Garage/Operations

Upsert policy details garage operations

Request Information

URI Parameters

None.

Body Parameters

Operations

PolicyDetailsGarageOperationsDTO
NameDescriptionTypeAdditional information
PolicyDetailsID

Id of the policy details

integer

None.

Types

Types

Collection of string

None.

OtherType

Other type

string

None.

FranchiseType

Franchise type

string

None.

CarPercentage

Car percentage

string

None.

TruckTractorPercentage

Truck tractor percentage

string

None.

MotorcyclePercentage

Motorcycle percentage

string

None.

RecreationalVehiclePercentage

Recreational vehicle percentage

string

None.

SnowmobilePercentage

Snowmobile percentage

string

None.

OtherDealer

Other dealer

string

None.

OtherPercentage

Other percentage

string

None.

AnnualGrossSalesAmount

Annual gross sales amount

string

None.

GallonsPumpedPerYearAmount

Gallons pumped per year amount

string

None.

NumDealerRepairerPlatesAmount

Num dealer repairer plates amount

string

None.

NumTrasportationPlatesAmount

Num trasportation plates amount

string

None.

NumHoistsAmount

Num hoists amount

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PolicyDetailsID": 1,
  "Types": [
    "sample string 1",
    "sample string 2"
  ],
  "OtherType": "sample string 2",
  "FranchiseType": "sample string 3",
  "CarPercentage": "sample string 4",
  "TruckTractorPercentage": "sample string 5",
  "MotorcyclePercentage": "sample string 6",
  "RecreationalVehiclePercentage": "sample string 7",
  "SnowmobilePercentage": "sample string 8",
  "OtherDealer": "sample string 9",
  "OtherPercentage": "sample string 10",
  "AnnualGrossSalesAmount": "sample string 11",
  "GallonsPumpedPerYearAmount": "sample string 12",
  "NumDealerRepairerPlatesAmount": "sample string 13",
  "NumTrasportationPlatesAmount": "sample string 14",
  "NumHoistsAmount": "sample string 15"
}

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

application/xml, text/xml

Sample:
<PolicyDetailsGarageOperationsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies.PolicyDetail.Garage">
  <AnnualGrossSalesAmount>sample string 11</AnnualGrossSalesAmount>
  <CarPercentage>sample string 4</CarPercentage>
  <FranchiseType>sample string 3</FranchiseType>
  <GallonsPumpedPerYearAmount>sample string 12</GallonsPumpedPerYearAmount>
  <MotorcyclePercentage>sample string 6</MotorcyclePercentage>
  <NumDealerRepairerPlatesAmount>sample string 13</NumDealerRepairerPlatesAmount>
  <NumHoistsAmount>sample string 15</NumHoistsAmount>
  <NumTrasportationPlatesAmount>sample string 14</NumTrasportationPlatesAmount>
  <OtherDealer>sample string 9</OtherDealer>
  <OtherPercentage>sample string 10</OtherPercentage>
  <OtherType>sample string 2</OtherType>
  <PolicyDetailsID>1</PolicyDetailsID>
  <RecreationalVehiclePercentage>sample string 7</RecreationalVehiclePercentage>
  <SnowmobilePercentage>sample string 8</SnowmobilePercentage>
  <TruckTractorPercentage>sample string 5</TruckTractorPercentage>
  <Types xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Types>
</PolicyDetailsGarageOperationsDTO>

Response Information

Resource Description

Upserting result

ActionResultDTO
NameDescriptionTypeAdditional information
IsSuccess

Signifies whether action is successful

boolean

None.

ErrorCode

Error code

string

None.

ErrorMessage

Error message

string

None.

InfoMessage

Information message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "ErrorCode": "sample string 2",
  "ErrorMessage": "sample string 3",
  "InfoMessage": "sample string 4"
}

application/xml, text/xml

Sample:
<ActionResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects">
  <ErrorCode>sample string 2</ErrorCode>
  <ErrorMessage>sample string 3</ErrorMessage>
  <InfoMessage>sample string 4</InfoMessage>
  <IsSuccess>true</IsSuccess>
</ActionResultDTO>