POST api/Product

Request Information

URI Parameters

None.

Body Parameters

ProductAdd
NameDescriptionTypeAdditional information
Id

integer

None.

ProductName

string

None.

ProductType

integer

None.

ProductDetails

string

None.

AnnualPremium

decimal number

None.

Status

boolean

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

IsDeleted

boolean

None.

IsActive

boolean

None.

TenantId

integer

None.

Coverage

Coverage

None.

Benefit

Collection of Benefit

None.

tempProID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProductName": "sample string 2",
  "ProductType": 3,
  "ProductDetails": "sample string 4",
  "AnnualPremium": 5.0,
  "Status": true,
  "CreatedBy": 7,
  "CreatedDate": "2025-12-13T10:29:11.3629515+05:00",
  "UpdatedBy": 9,
  "UpdatedDate": "2025-12-13T10:29:11.3629515+05:00",
  "IsDeleted": true,
  "IsActive": true,
  "TenantId": 13,
  "Coverage": {
    "Id": 1,
    "CoverageName": "sample string 2",
    "CoPayPercentage": "sample string 3",
    "Deductibles": "sample string 4",
    "Ceiling": true,
    "IsAgencyRepair": 6,
    "AgencyGarage": "sample string 7",
    "ProductId": 8,
    "CreatedBy": 9,
    "CreatedDate": "2025-12-13T10:29:11.3629515+05:00",
    "UpdatedBy": 11,
    "UpdatedDate": "2025-12-13T10:29:11.3629515+05:00",
    "IsDeleted": true,
    "IsActive": true
  },
  "Benefit": [
    {
      "Id": 1,
      "BenefitName": "sample string 2",
      "BenefitDetails": "sample string 3",
      "Status": true,
      "CreatedBy": 5,
      "CreatedDate": "2025-12-13T10:29:11.3629515+05:00",
      "UpdatedBy": 7,
      "UpdatedDate": "2025-12-13T10:29:11.3629515+05:00",
      "IsDeleted": true,
      "IsActive": true,
      "ProductId": 11
    },
    {
      "Id": 1,
      "BenefitName": "sample string 2",
      "BenefitDetails": "sample string 3",
      "Status": true,
      "CreatedBy": 5,
      "CreatedDate": "2025-12-13T10:29:11.3629515+05:00",
      "UpdatedBy": 7,
      "UpdatedDate": "2025-12-13T10:29:11.3629515+05:00",
      "IsDeleted": true,
      "IsActive": true,
      "ProductId": 11
    }
  ],
  "tempProID": 14
}

text/xml

Sample:
<ProductAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MotoClaims.Entities.Product">
  <AnnualPremium>5</AnnualPremium>
  <Benefit xmlns:d2p1="http://schemas.datacontract.org/2004/07/MotoClaims.Entities.Benefits">
    <d2p1:Benefit>
      <d2p1:BenefitDetails>sample string 3</d2p1:BenefitDetails>
      <d2p1:BenefitName>sample string 2</d2p1:BenefitName>
      <d2p1:CreatedBy>5</d2p1:CreatedBy>
      <d2p1:CreatedDate>2025-12-13T10:29:11.3629515+05:00</d2p1:CreatedDate>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:IsDeleted>true</d2p1:IsDeleted>
      <d2p1:ProductId>11</d2p1:ProductId>
      <d2p1:Status>true</d2p1:Status>
      <d2p1:UpdatedBy>7</d2p1:UpdatedBy>
      <d2p1:UpdatedDate>2025-12-13T10:29:11.3629515+05:00</d2p1:UpdatedDate>
    </d2p1:Benefit>
    <d2p1:Benefit>
      <d2p1:BenefitDetails>sample string 3</d2p1:BenefitDetails>
      <d2p1:BenefitName>sample string 2</d2p1:BenefitName>
      <d2p1:CreatedBy>5</d2p1:CreatedBy>
      <d2p1:CreatedDate>2025-12-13T10:29:11.3629515+05:00</d2p1:CreatedDate>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:IsDeleted>true</d2p1:IsDeleted>
      <d2p1:ProductId>11</d2p1:ProductId>
      <d2p1:Status>true</d2p1:Status>
      <d2p1:UpdatedBy>7</d2p1:UpdatedBy>
      <d2p1:UpdatedDate>2025-12-13T10:29:11.3629515+05:00</d2p1:UpdatedDate>
    </d2p1:Benefit>
  </Benefit>
  <Coverage>
    <AgencyGarage>sample string 7</AgencyGarage>
    <Ceiling>true</Ceiling>
    <CoPayPercentage>sample string 3</CoPayPercentage>
    <CoverageName>sample string 2</CoverageName>
    <CreatedBy>9</CreatedBy>
    <CreatedDate>2025-12-13T10:29:11.3629515+05:00</CreatedDate>
    <Deductibles>sample string 4</Deductibles>
    <Id>1</Id>
    <IsActive>true</IsActive>
    <IsAgencyRepair>6</IsAgencyRepair>
    <IsDeleted>true</IsDeleted>
    <ProductId>8</ProductId>
    <UpdatedBy>11</UpdatedBy>
    <UpdatedDate>2025-12-13T10:29:11.3629515+05:00</UpdatedDate>
  </Coverage>
  <CreatedBy>7</CreatedBy>
  <CreatedDate>2025-12-13T10:29:11.3629515+05:00</CreatedDate>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <ProductDetails>sample string 4</ProductDetails>
  <ProductName>sample string 2</ProductName>
  <ProductType>3</ProductType>
  <Status>true</Status>
  <TenantId>13</TenantId>
  <UpdatedBy>9</UpdatedBy>
  <UpdatedDate>2025-12-13T10:29:11.3629515+05:00</UpdatedDate>
  <tempProID>14</tempProID>
</ProductAdd>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.