Save answers to one carrier application
const url = 'https://api.hedgespecialty.com/api/v1/broker/submissions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/applications/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/checkpoint';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"operation_id":"example","expected_answer_revision":1,"expected_schema_fingerprint":"example","field_changes":{},"explicit_clears":["example"],"collection_operations":[{"field_key":"example","operation":"insert","record_id":"example","changes":{}}],"selected_products":["example"],"source_reference":{"source_id":"example","content_hash":"example","channel":"broker_portal","evidence":"explicit","snippet":"example","extractor_version":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.hedgespecialty.com/api/v1/broker/submissions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/applications/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/checkpoint \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "operation_id": "example", "expected_answer_revision": 1, "expected_schema_fingerprint": "example", "field_changes": {}, "explicit_clears": [ "example" ], "collection_operations": [ { "field_key": "example", "operation": "insert", "record_id": "example", "changes": {} } ], "selected_products": [ "example" ], "source_reference": { "source_id": "example", "content_hash": "example", "channel": "broker_portal", "evidence": "explicit", "snippet": "example", "extractor_version": "example" } }'The write half of the workspace. session_id is the
ApplicationSection.application_id. Send answers keyed by the
program’s question keys in field_changes (clears in
explicit_clears, list edits in collection_operations) together
with the application’s current answer_revision and
schema_fingerprint. Idempotent per operation_id. Returns a
receipt with the refreshed application, the keys applied and
rejected, and any shared-fact changes the answers implied (Hedge
maps facts across the submission’s other applications
asynchronously; watch the changes stream). Requires the
broker_submit scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Save answers to one application. Optimistic concurrency: echo the
application’s current answer_revision and schema_fingerprint; a
mismatch answers 409 with the current application so you can
re-apply. operation_id makes the save idempotent: a retried
command with the same id replays the original receipt.
object
Answers to set
object
Question keys to clear explicitly.
object
object
Provenance of a fact or answer.
object
Responses
Section titled “Responses”Checkpoint receipt
object
One carrier application (a carrier-API quote session) inside the
workspace: its schema, current answers, per-field ownership, and
readiness. application_id is the session_id used by the
checkpoint / request-quote / employers-classes paths. Revisions
(answer_revision, fact_revision, selection_revision) and
schema_fingerprint are the optimistic-concurrency tokens every
command must echo.
object
The normalized question schema (fields, required_field_keys, program identity); the same questions GET /broker/programs/{program_id}/application-schema projects.
object
Current answers keyed by question key.
object
object
object
Provenance of a fact or answer.
object
Whether Hedge’s fact-to-answer mapping is idle or still running for this application.
Required question keys still unanswered.
object
needs_information until every required visible question is answered, then ready_for_quote.
Lifecycle of the last quote request for this application (draft until one is made).
The carrier outcome of the last request
object
object
object
Provenance of a fact or answer.
object
Example
{ "application": { "owner_host": "hedge", "route": "hedge", "ownership": { "additionalProperty": { "kind": "explicit", "source": { "channel": "broker_portal", "evidence": "explicit" } } } }, "fact_changes": [ { "scope": "insured", "source": { "channel": "broker_portal", "evidence": "explicit" }, "confirmed": false } ]}Broker_submit scope required
Submission or application not found
Stale revision or fingerprint; the body carries code and the current application
Command rejected (code: application_command_rejected, e.g. an invalid classification)
Save is busy (code: application_busy); retry the same operation after Retry-After