patch
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
Updates an existing coverage record within a proposal. Send a JSON object containing only the fields you want to change. 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: Update a coverage limit:
PATCH /api/Quotes/Proposals/12345/Coverages/ProposalCLCoverage/501
Content-Type: application/json
{
"Limit": 250000.00,
"Deductible": 1000.00
}200 OK
{
"IsSuccessful": true,
"RecordID": 501,
"Message": "Updated coverage with id 501 successfully."
}Scenario 2: Validation error on a required field:
PATCH /api/Quotes/Proposals/12345/Coverages/ProposalCLCoverage/501
Content-Type: application/json
{
"Limit": null
}200 OK
{
"IsSuccessful": false,
"RecordID": 0,
"Message": "Limit is required.",
"Details": [
{
"Field": "Limit",
"FriendlyFieldName": "Coverage Limit",
"Message": "Limit is required."
}
]
}