Answer the file's gaps (shared and per market)
const url = 'https://api.hedgespecialty.com/api/v1/broker/submissions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/answers';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"shared_answers":{},"answers":{"additionalProperty":{}},"confirm_suggestions":false,"producer_email":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.hedgespecialty.com/api/v1/broker/submissions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/answers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "shared_answers": {}, "answers": { "additionalProperty": {} }, "confirm_suggestions": false, "producer_email": "example" }'shared_answers by canonical key are written to the file and refill
every market that asks them (a later answer corrects an earlier one,
as in the portal; a key no market on the file asks is ignored and
named in warnings[]); answers[program_id] go to that
market’s application (a question’s id, or its canonical key; a
row’s question as rows[record_id].field). A market still
preparing takes its answers once prepared. confirm_suggestions: true confirms each class Hedge suggested (suggested[]) as it
stands; to pick another class, answer it.
All or nothing: any refused answer returns 422 invalid_answers
with errors[] (program_id, key, message) and nothing is
saved. Submit scope; producer_email with a machine credential.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
object
object
Responses
Section titled “Responses”The file’s state after the answers
object
Created with quote: true: each market quotes as soon as it is ready.
One Hedge Instant Quote program on the file and where it stands.
object
preparing: Hedge is preparing the application (poll). needs_answers: answer missing[]. ready: request the quote. quoting: requested. quoted: quote is set. declined / not_a_fit: closed, with reason.
Plain words: Preparing · Needs 2 answers · Ready to quote · Quoting · Quoted · $1,234.00 · Declined · reason · Not a fit · reason.
object
The canonical key (what shared_answers takes); null for a file-level gap.
The market’s own question id (what answers[program_id] takes).
Plain-language note on what to do. A gap in the business’s own name, address, contact or effective date names the call that sets it: PATCH /broker/submissions/{id}/business and its field.
object
Dollars.
Dollars
A class Hedge picked, or ranked for an unanswered class question, that you must confirm (the same ranking POST /broker/appetite/instant returns). Confirm it with confirm_suggestions, by answering with the same value, or answer another.
object
Example
{ "markets": [ { "state": "preparing", "quote": { "kind": "quote" } } ]}not_instant_flow: the file was not created through this flow
invalid_answers with errors[]