Skip to main content
POST
Set the underwriter’s values on an underwriting submission

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Headers

Idempotency-Key
string
required

Client-chosen key for safe retries: 1-128 letters, digits, -, _, . or :. Use a new random UUID for each intended operation and the same key when retrying it. Do not put customer data or credentials in the key.

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9\-_.:]+$

Path Parameters

submissionId
string<uuid>
required

The submission’s id.

Body

application/json
values
object[]

Each value to hold or take away, by its input path, each path once.

Required array length: 1 - 500 elements
facts
object[]

Each fact’s value to hold or take away, by fact, row and field, each once.

Required array length: 1 - 500 elements
rows
object[]

Each row to add to a fact kept as a list, in order. The submission gives each new row its id (u- and 8 hex digits), the same on a retry with the same Idempotency-Key, and answers them in facts.added. A row of a list keyed by one of its fields (a year, a location) is added in facts by that key; an item of a program list in values by its path. Take a row away with {fact, row, value: null} in facts.

Required array length: 1 - 500 elements

Response

What was set and taken away, and what the submission still waits on.

set
string[]
required

The paths that now hold the value sent, in the order sent.

Minimum string length: 1
cleared
string[]
required

The paths whose value was taken away; the files’ proposals there are offered again.

Minimum string length: 1
facts
object
required

The same for the facts named, and the rows added.

outstanding
object[]
required

What the submission still waits on after this call, as a read of it answers.