POST v1/Policies/Details/ProfessionalLiability/ProductsServices

Creates new prof liab product service

Request Information

URI Parameters

None.

Body Parameters

Product services

ProfLiabProductsServicesDTO
NameDescriptionTypeAdditional information
PolicyDetailsID

integer

None.

ProductsServices

Collection of ProductServiceDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "PolicyDetailsID": 1,
  "ProductsServices": [
    {
      "PolicyDetailsProfessionalLiabilityProductsServicesMappingId": 1,
      "PolicyDetailsId": 1,
      "Name": "sample string 2",
      "Manufactured": true,
      "Sales": "sample string 3"
    },
    {
      "PolicyDetailsProfessionalLiabilityProductsServicesMappingId": 1,
      "PolicyDetailsId": 1,
      "Name": "sample string 2",
      "Manufactured": true,
      "Sales": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<ProfLiabProductsServicesDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies.PolicyDetail.ProfessionalLiability">
  <PolicyDetailsID>1</PolicyDetailsID>
  <ProductsServices>
    <ProductServiceDTO>
      <Manufactured>true</Manufactured>
      <Name>sample string 2</Name>
      <PolicyDetailsId>1</PolicyDetailsId>
      <PolicyDetailsProfessionalLiabilityProductsServicesMappingId>1</PolicyDetailsProfessionalLiabilityProductsServicesMappingId>
      <Sales>sample string 3</Sales>
    </ProductServiceDTO>
    <ProductServiceDTO>
      <Manufactured>true</Manufactured>
      <Name>sample string 2</Name>
      <PolicyDetailsId>1</PolicyDetailsId>
      <PolicyDetailsProfessionalLiabilityProductsServicesMappingId>1</PolicyDetailsProfessionalLiabilityProductsServicesMappingId>
      <Sales>sample string 3</Sales>
    </ProductServiceDTO>
  </ProductsServices>
</ProfLiabProductsServicesDTO>

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

Response Information

Resource Description

Creation result

ActionResultDTO
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

ErrorCode

string

None.

ErrorMessage

string

None.

InfoMessage

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>