Application Sources
Track the source of risk, coverage, and admin values on an application
The Risk, Coverage, and Admin values on an application can be set in a variety of ways:
- [.h-code]POST[.h-code] [.h-endpoint-link]/applications[.h-endpoint-link]
- [.h-code]PUT[.h-code] [.h-endpoint-link]/applications/:id[.h-endpoint-link]
- [.h-code]POST[.h-code] [.h-endpoint-link]/applications/:id/autofill[.h-endpoint-link]
- [.h-code]POST[.h-code] [.h-endpoint-link]/applications/:id/data-extraction[.h-endpoint-link]
To enable developers to better track how a given value was set, we provide the [.h-code]source[.h-code] field on application values. Currently, this field is in beta and is not returned by default. If you would like for it to be returned in your Applications responses, please contact us at support@heraldapi.com.
How it works
When risk, coverage, and admin values are set or updated as a result of a call to one of the endpoints above, the [.h-code]source[.h-code] field will be populated according to the table below.
Example
Below is an example workflow to highlight the behavior of the source field. The examples below only include risk values, but the same pattern applies to risk, coverage, and admin values.
(1) Create application via [.h-code]POST /applications[.h-code]
(2) Update application via [.h-code]POST /applications/:id/autofill[.h-code]
(3) Update application via [.h-code]POST /applications/:id/data_extraction[.h-code]
(4) Update application via [.h-code]PUT /applications/:id[.h-code]
FAQ
- Q: Do null values have a source?
- A: No - null values do not have a source and will include source: null
- Q: What happens if a value is updated and then updated back?
- A: The source will reflect the endpoint that most recently set the value. So, for example, say a value is set to "1" as a result of calling autofill, then set to "2" by a PUT request, then set back to "1" by a subsequent PUT request. In this case, the final source for the value will be "", since it was most recently set by the PUT call.