Quote Groups

Update quote elements

PATCH
/partnerapi/v2/quote-groups/{quoteGroupId}/quotes/{quoteId}

Applies element changes to a specific quote within a group. Common elements (e.g. YearBuilt, RoofAge) are propagated to all quotes in the group, including the sibling rating type (Admitted ↔ EAndS).

Authorization

partnerApiKey
X-SwyfftApiKey<token>

API key issued by Swyfft. Pass in the X-SwyfftApiKey request header.

In: header

Path Parameters

quoteGroupId*string

ID of the quote group returned by Create a quote group.

quoteId*string

ID of the quote within the group (one per rating type: Admitted or E&S).

Request Body

The element patches to apply.

Request body for PATCH /partnerapi/v2/quote-groups/{id}/quotes/{quoteId}.

elements?array<>|

One or more element changes to apply to the quote.

Response Body

curl -X PATCH "https://example.com/partnerapi/v2/quote-groups/string/quotes/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "quoteGroupId": "a51b0373-35ef-4927-98a1-cbda0d27b588",  "quotes": [    {      "quoteId": "826e5192-f8c6-4e24-aab3-3910e46c52b7",      "ratingType": "Admitted",      "carrierCode": "BIC",      "annualPremium": 1250,      "annualFeesTotal": 100,      "grossAnnualPayment": 100,      "expiresOn": "2025-06-15T14:30:00Z",      "customizeUrl": "string",      "premiumErrors": "1250.00",      "elementGroups": [        {          "groupName": "string",          "elements": [            {              "elementName": "string",              "value": "1000.00",              "defaultValue": "1000.00",              "elementType": "string",              "valueType": "1000.00",              "editable": true,              "conditionallyHidden": true,              "displayFormat": "string",              "minValue": 1000,              "maxValue": 1000,              "increment": 100,              "choices": [                {                  "name": "John Smith",                  "value": "1000.00"                }              ]            }          ]        }      ]    }  ],  "errors": [    {      "ratingType": "Admitted",      "code": "conflict",      "message": "string"    }  ],  "createdOn": "2025-06-15T14:30:00Z"}