POST v1/Locations/{locationID}/Policies/LinesOfBusiness/{systemLineOfBusinessID}

Assign a Line of Business to a Location

Request Information

URI Parameters

NameDescriptionTypeAdditional information
locationID

Id of the location

string

Required

systemLineOfBusinessID

System line of business id

string

Required

Body Parameters

None.

Response Information

Resource Description

Assigned Line of Business

ActionResultDTOOfLocationLobDTO
NameDescriptionTypeAdditional information
Result

LocationLobDTO

None.

CreatedBy

string

None.

EntityID

integer

None.

RowSource

string

None.

PolicyID

integer

None.

IsSuccess

boolean

None.

ErrorCode

string

None.

ErrorMessage

string

None.

InfoMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": {
    "LOBID": 1,
    "Visible": true,
    "LocationID": 1,
    "Id": 2,
    "LOB": {
      "LOBID": 1,
      "LOBString": "sample string 2",
      "InternalCode": "sample string 3",
      "IsPackage": true,
      "PackageCode": "sample string 5",
      "AcordCode": "sample string 6",
      "LOBClassId": "sample string 7",
      "SubCodes": "sample string 8",
      "LOBDetailsGroup": "sample string 9",
      "LOBGroupCode": "sample string 10",
      "HasDetails": true,
      "DropDown": "sample string 12"
    },
    "LocationLOBCoverages": [
      {
        "LocationLOBCoverageID": 1,
        "CoverageID": 1,
        "Visible": true,
        "LocationLobID": 1,
        "Coverage": {
          "CoverageID": 1,
          "CoverageName": "sample string 2",
          "InternalCode": "sample string 3",
          "Category": "sample string 4"
        }
      },
      {
        "LocationLOBCoverageID": 1,
        "CoverageID": 1,
        "Visible": true,
        "LocationLobID": 1,
        "Coverage": {
          "CoverageID": 1,
          "CoverageName": "sample string 2",
          "InternalCode": "sample string 3",
          "Category": "sample string 4"
        }
      }
    ]
  },
  "CreatedBy": "sample string 1",
  "EntityID": 2,
  "RowSource": "sample string 3",
  "PolicyID": 4,
  "IsSuccess": true,
  "ErrorCode": "sample string 6",
  "ErrorMessage": "sample string 7",
  "InfoMessage": "sample string 8"
}

application/xml, text/xml

Sample:
<ActionResultOfLocationLobDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects">
  <ErrorCode>sample string 6</ErrorCode>
  <ErrorMessage>sample string 7</ErrorMessage>
  <InfoMessage>sample string 8</InfoMessage>
  <IsSuccess>true</IsSuccess>
  <CreatedBy>sample string 1</CreatedBy>
  <EntityID>2</EntityID>
  <PolicyID>4</PolicyID>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
    <d2p1:Id>2</d2p1:Id>
    <d2p1:LOB xmlns:d3p1="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Locations">
      <d3p1:AcordCode>sample string 6</d3p1:AcordCode>
      <d3p1:DropDown>sample string 12</d3p1:DropDown>
      <d3p1:HasDetails>true</d3p1:HasDetails>
      <d3p1:InternalCode>sample string 3</d3p1:InternalCode>
      <d3p1:IsPackage>true</d3p1:IsPackage>
      <d3p1:LOBClassId>sample string 7</d3p1:LOBClassId>
      <d3p1:LOBDetailsGroup>sample string 9</d3p1:LOBDetailsGroup>
      <d3p1:LOBGroupCode>sample string 10</d3p1:LOBGroupCode>
      <d3p1:LOBID>1</d3p1:LOBID>
      <d3p1:LOBString>sample string 2</d3p1:LOBString>
      <d3p1:PackageCode>sample string 5</d3p1:PackageCode>
      <d3p1:SubCodes>sample string 8</d3p1:SubCodes>
    </d2p1:LOB>
    <d2p1:LOBID>1</d2p1:LOBID>
    <d2p1:LocationID>1</d2p1:LocationID>
    <d2p1:LocationLOBCoverages>
      <d2p1:LocationLOBCoverageDTO>
        <d2p1:Coverage>
          <d2p1:Category>sample string 4</d2p1:Category>
          <d2p1:CoverageID>1</d2p1:CoverageID>
          <d2p1:CoverageName>sample string 2</d2p1:CoverageName>
          <d2p1:InternalCode>sample string 3</d2p1:InternalCode>
        </d2p1:Coverage>
        <d2p1:CoverageID>1</d2p1:CoverageID>
        <d2p1:LocationLOBCoverageID>1</d2p1:LocationLOBCoverageID>
        <d2p1:LocationLobID>1</d2p1:LocationLobID>
        <d2p1:Visible>true</d2p1:Visible>
      </d2p1:LocationLOBCoverageDTO>
      <d2p1:LocationLOBCoverageDTO>
        <d2p1:Coverage>
          <d2p1:Category>sample string 4</d2p1:Category>
          <d2p1:CoverageID>1</d2p1:CoverageID>
          <d2p1:CoverageName>sample string 2</d2p1:CoverageName>
          <d2p1:InternalCode>sample string 3</d2p1:InternalCode>
        </d2p1:Coverage>
        <d2p1:CoverageID>1</d2p1:CoverageID>
        <d2p1:LocationLOBCoverageID>1</d2p1:LocationLOBCoverageID>
        <d2p1:LocationLobID>1</d2p1:LocationLobID>
        <d2p1:Visible>true</d2p1:Visible>
      </d2p1:LocationLOBCoverageDTO>
    </d2p1:LocationLOBCoverages>
    <d2p1:Visible>true</d2p1:Visible>
  </Result>
  <RowSource>sample string 3</RowSource>
</ActionResultOfLocationLobDTO>