post
https://{environment}.origamirisk.com/OrigamiApi/api/Quotes/Proposals//Coverages/
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Inserts a new coverage record into a proposal for the specified coverage domain. Send a JSON object containing the field values for the new record. The proposal must be in a modifiable state, and the domain must be a valid coverage or subcoverage type for the proposal.
Preconditions
- The proposal must be modifiable (
CanModifyistrue). - The domain must be a valid coverage or subcoverage domain for this proposal.
Examples
Scenario 1: Successfully insert a coverage:
POST /api/Quotes/Proposals/12345/Coverages/ProposalCLCoverage
Content-Type: application/json
{
"CoverageID": 42,
"ProposalCLScheduleID": 100,
"Limit": 100000.00,
"Deductible": 500.00
}200 OK
{
"IsSuccessful": true,
"RecordID": 501,
"Message": "Inserted coverage with id 501 successfully.",
"Warnings": null
}Scenario 2: Validation error on insert:
POST /api/Quotes/Proposals/12345/Coverages/ProposalCLCoverage
Content-Type: application/json
{
"ProposalCLScheduleID": 100
}200 OK
{
"IsSuccessful": false,
"RecordID": 0,
"Message": "CoverageID is required."
}