POST api/Insurances

Creates a new insurance or updates an existent insurance's information.

Request Information

URI Parameters

None.

Body Parameters

InsuranceModel
NameDescriptionTypeAdditional information
CompanyName

Company name of the insurance (Required).

string

None.

Active

Indicates whether the insurance is active or not.

boolean

None.

InsuranceType

Type of the insurance (Required).

string

None.

Id

Unique ID of the model in the portal (Read only).

globally unique identifier

None.

ExternalId

Unique ID of the model on integrating system (Required).

string

None.

Request Formats

application/json, text/json

Sample:
{
  "companyName": "sample string 1",
  "active": true,
  "insuranceType": "sample string 3",
  "id": "e4a835cd-8a3f-4b3b-8f1f-17c092fffd99",
  "externalId": "sample string 5"
}

application/xml, text/xml

Sample:
<InsuranceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.Insurances">
  <ExternalId xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">sample string 5</ExternalId>
  <Id xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">e4a835cd-8a3f-4b3b-8f1f-17c092fffd99</Id>
  <Active>true</Active>
  <CompanyName>sample string 1</CompanyName>
  <InsuranceType>sample string 3</InsuranceType>
</InsuranceModel>

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

Response Information

Resource Description

InsuranceModel
NameDescriptionTypeAdditional information
CompanyName

Company name of the insurance (Required).

string

None.

Active

Indicates whether the insurance is active or not.

boolean

None.

InsuranceType

Type of the insurance (Required).

string

None.

Id

Unique ID of the model in the portal (Read only).

globally unique identifier

None.

ExternalId

Unique ID of the model on integrating system (Required).

string

None.

Response Formats

application/json, text/json

Sample:
{
  "companyName": "sample string 1",
  "active": true,
  "insuranceType": "sample string 3",
  "id": "11c97a39-1430-46fa-a7a9-dc3f48547224",
  "externalId": "sample string 5"
}

application/xml, text/xml

Sample:
<InsuranceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.Insurances">
  <ExternalId xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">sample string 5</ExternalId>
  <Id xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">11c97a39-1430-46fa-a7a9-dc3f48547224</Id>
  <Active>true</Active>
  <CompanyName>sample string 1</CompanyName>
  <InsuranceType>sample string 3</InsuranceType>
</InsuranceModel>