POST api/Insurances
Creates a new insurance or updates an existent insurance's information.
Request Information
URI Parameters
None.
Body Parameters
InsuranceModel| Name | Description | Type | Additional 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": "c904be61-382f-4a99-962d-789315f8167d",
"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">c904be61-382f-4a99-962d-789315f8167d</Id> <Active>true</Active> <CompanyName>sample string 1</CompanyName> <InsuranceType>sample string 3</InsuranceType> </InsuranceModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
InsuranceModel| Name | Description | Type | Additional 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": "a2a45196-9d3c-4749-9387-45379ea77d88",
"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">a2a45196-9d3c-4749-9387-45379ea77d88</Id> <Active>true</Active> <CompanyName>sample string 1</CompanyName> <InsuranceType>sample string 3</InsuranceType> </InsuranceModel>