curl --request POST \
--url https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": "<string>",
"item": "<string>",
"words": "<string>"
}
'import requests
url = "https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions"
payload = {
"version": "<string>",
"item": "<string>",
"words": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: '<string>', item: '<string>', words: '<string>'})
};
fetch('https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'version' => '<string>',
'item' => '<string>',
'words' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions"
payload := strings.NewReader("{\n \"version\": \"<string>\",\n \"item\": \"<string>\",\n \"words\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"version\": \"<string>\",\n \"item\": \"<string>\",\n \"words\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"version\": \"<string>\",\n \"item\": \"<string>\",\n \"words\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"version": "<string>",
"toDecide": 1,
"groups": [
{
"kind": "conflicts",
"items": [
{
"id": "<string>",
"changes": [
"<string>"
],
"title": "<string>",
"why": "<string>",
"accept": "<string>",
"decline": "<string>",
"evidence": [
{
"kind": "document",
"fact": "<string>",
"filing": "<string>",
"document": "<string>",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"page": 2,
"says": "<string>"
}
],
"decided": {
"outcome": "accepted",
"words": "<string>",
"by": {
"kind": "user",
"id": "<string>",
"name": "<string>"
},
"at": "2023-11-07T05:31:56Z"
},
"previous": {
"version": "<string>",
"outcome": "accepted",
"words": "<string>",
"by": {
"kind": "user",
"id": "<string>",
"name": "<string>"
},
"at": "2023-11-07T05:31:56Z"
},
"kind": "notice",
"notice": "<string>"
}
]
}
]
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"executionId": "<string>",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"executionId": "<string>",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"problems": [
{
"path": [
"<string>"
],
"code": "not_a_circular_project",
"message": "<string>"
}
],
"raterRebuildId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"executionId": "<string>",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"problems": [
{
"path": [
"<string>"
],
"code": "not_a_circular_project",
"message": "<string>"
}
],
"raterRebuildId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"problems": [
{
"path": [
"<string>"
],
"code": "not_a_circular_project",
"message": "<string>"
}
],
"raterRebuildId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "<string>"
}Answer a decision item of a rater rebuild’s current version
A rater rebuild applies one ISO circular to a carrier’s rater for one product in one state, on a circular project (a project with projectType iso_circular). It reads the rater, the rebuild guideline, the in-force book and the experience file from the product’s rating setup in the state (a product_rating_setups record, set on the product’s Rating tab). The worked cases are the rebuild’s own, optional input. A caller who can read the project reads its rebuilds; a caller who can edit the project creates and changes them. A product has at most one open rebuild in a state. Records your answer to one item of the rebuild’s decisions: accepted, declined, or proposed with words saying what you want instead (required with proposed, a note otherwise, at most 4,000 characters). Read the item’s accept and decline first: an answer only records, so it does not change the rater, write to the log or start a version, and no answer is needed to finish. It replaces any earlier answer to the same item on the same version, yours or another person’s: the last write wins, so sending it again sets the same answer and the request takes no Idempotency-Key. An answer belongs to its version: once a new version is current, its items are open again, each with this answer as previous. Send the version you read: another version than currentVersion is 409 version_not_current, and an item that version does not have is 422 unknown_decision_item. A draft or a failed first pass is 409 rebuild_not_built; a closed rebuild 409 rebuild_closed; while the first pass builds, 409 version_in_progress. While a later version builds, the current one’s items can still be answered. Needs edit access to the project. Returns the current version’s decisions with your answer, and toDecide the items still open.
Alpha: this operation may change or be removed without notice.
curl --request POST \
--url https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": "<string>",
"item": "<string>",
"words": "<string>"
}
'import requests
url = "https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions"
payload = {
"version": "<string>",
"item": "<string>",
"words": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: '<string>', item: '<string>', words: '<string>'})
};
fetch('https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'version' => '<string>',
'item' => '<string>',
'words' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions"
payload := strings.NewReader("{\n \"version\": \"<string>\",\n \"item\": \"<string>\",\n \"words\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"version\": \"<string>\",\n \"item\": \"<string>\",\n \"words\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.effectiveai.app/api/v2/insurance/rater-rebuilds/{id}/decisions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"version\": \"<string>\",\n \"item\": \"<string>\",\n \"words\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"version": "<string>",
"toDecide": 1,
"groups": [
{
"kind": "conflicts",
"items": [
{
"id": "<string>",
"changes": [
"<string>"
],
"title": "<string>",
"why": "<string>",
"accept": "<string>",
"decline": "<string>",
"evidence": [
{
"kind": "document",
"fact": "<string>",
"filing": "<string>",
"document": "<string>",
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"page": 2,
"says": "<string>"
}
],
"decided": {
"outcome": "accepted",
"words": "<string>",
"by": {
"kind": "user",
"id": "<string>",
"name": "<string>"
},
"at": "2023-11-07T05:31:56Z"
},
"previous": {
"version": "<string>",
"outcome": "accepted",
"words": "<string>",
"by": {
"kind": "user",
"id": "<string>",
"name": "<string>"
},
"at": "2023-11-07T05:31:56Z"
},
"kind": "notice",
"notice": "<string>"
}
]
}
]
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"executionId": "<string>",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"executionId": "<string>",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"problems": [
{
"path": [
"<string>"
],
"code": "not_a_circular_project",
"message": "<string>"
}
],
"raterRebuildId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"details": [
{
"location": "path",
"path": [
"<string>"
],
"code": "required",
"message": "<string>"
}
],
"requestId": "<string>",
"dataset": "naic",
"businessCode": "<string>",
"violations": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"value": "<unknown>",
"constraint": "<string>",
"cite": "<string>"
}
],
"violationsTruncated": true,
"executionId": "<string>",
"accessUrl": "<string>"
}{
"error": "<string>",
"code": "<string>",
"problems": [
{
"path": [
"<string>"
],
"code": "not_a_circular_project",
"message": "<string>"
}
],
"raterRebuildId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"problems": [
{
"path": [
"<string>"
],
"code": "not_a_circular_project",
"message": "<string>"
}
],
"raterRebuildId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "<string>"
}Authorizations
Body
Response
The current version’s decisions, with the answer.