curl --request POST \
--url https://api.canary.effectiveai.app/api/v2/insurance/rater-rebuilds \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workedCases": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.canary.effectiveai.app/api/v2/insurance/rater-rebuilds"
payload = {
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workedCases": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
projectId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
productId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
workedCases: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.canary.effectiveai.app/api/v2/insurance/rater-rebuilds', 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.canary.effectiveai.app/api/v2/insurance/rater-rebuilds",
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([
'projectId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'productId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'workedCases' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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.canary.effectiveai.app/api/v2/insurance/rater-rebuilds"
payload := strings.NewReader("{\n \"projectId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"productId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workedCases\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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.canary.effectiveai.app/api/v2/insurance/rater-rebuilds")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"projectId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"productId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workedCases\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.canary.effectiveai.app/api/v2/insurance/rater-rebuilds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"projectId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"productId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workedCases\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"webUrl": "<string>"
},
"productId": "<string>",
"state": "AL",
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": {
"kind": "user",
"id": "<string>",
"name": "<string>"
},
"inputs": {
"ratingSetup": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"rater": {
"raterId": "<string>",
"release": 500000,
"bundleId": "<string>"
},
"guideline": {
"guidelineId": "<string>",
"release": 500000,
"title": "<string>"
},
"book": {
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sha256": "<string>"
},
"workedCases": {
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sha256": "<string>"
},
"experienceFile": {
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sha256": "<string>"
},
"circulars": [
"<string>"
]
},
"missingToBuild": [
"ratingSetup"
],
"nextActions": [
"set_inputs"
],
"status": "draft",
"revision": null,
"builtAt": null,
"builtBy": null,
"circulars": [
null
],
"run": null,
"steps": [
null
],
"iso": null,
"changes": [
null
],
"currentVersion": null,
"versions": [
null
],
"notices": [
null
],
"closedAt": null
}{
"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>",
"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>",
"problems": [
{
"path": [
"<string>"
],
"code": "not_a_circular_project",
"message": "<string>"
}
],
"raterRebuildId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "<string>"
}Create a draft rater rebuild
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. Creates a draft for the product and state on the circular project. Nothing runs until the build. The project must be a circular project, and when its link names a product or a state, they must be the body’s. productId is a Catalog product record id: the product must exist, you must be able to read it, and its page must list it as available in the state (product_not_available). workedCases is optional: a Vault file you can read (input_unreadable), which the build pins and each version rates. 422 rebuild_inputs_invalid lists each problem. A product with an open rebuild in the state is 409 rebuild_open, with its raterRebuildId. Needs edit access to the project. Requires Idempotency-Key: a retry with the same key and body returns the same rebuild as it is now for 7 days; the same key with another body is 409 idempotency_conflict.
Alpha: this operation may change or be removed without notice.
curl --request POST \
--url https://api.canary.effectiveai.app/api/v2/insurance/rater-rebuilds \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workedCases": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.canary.effectiveai.app/api/v2/insurance/rater-rebuilds"
payload = {
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"productId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workedCases": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
projectId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
productId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
workedCases: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.canary.effectiveai.app/api/v2/insurance/rater-rebuilds', 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.canary.effectiveai.app/api/v2/insurance/rater-rebuilds",
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([
'projectId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'productId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'workedCases' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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.canary.effectiveai.app/api/v2/insurance/rater-rebuilds"
payload := strings.NewReader("{\n \"projectId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"productId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workedCases\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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.canary.effectiveai.app/api/v2/insurance/rater-rebuilds")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"projectId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"productId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workedCases\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.canary.effectiveai.app/api/v2/insurance/rater-rebuilds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"projectId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"productId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workedCases\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"webUrl": "<string>"
},
"productId": "<string>",
"state": "AL",
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": {
"kind": "user",
"id": "<string>",
"name": "<string>"
},
"inputs": {
"ratingSetup": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"rater": {
"raterId": "<string>",
"release": 500000,
"bundleId": "<string>"
},
"guideline": {
"guidelineId": "<string>",
"release": 500000,
"title": "<string>"
},
"book": {
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sha256": "<string>"
},
"workedCases": {
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sha256": "<string>"
},
"experienceFile": {
"artifactId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sha256": "<string>"
},
"circulars": [
"<string>"
]
},
"missingToBuild": [
"ratingSetup"
],
"nextActions": [
"set_inputs"
],
"status": "draft",
"revision": null,
"builtAt": null,
"builtBy": null,
"circulars": [
null
],
"run": null,
"steps": [
null
],
"iso": null,
"changes": [
null
],
"currentVersion": null,
"versions": [
null
],
"notices": [
null
],
"closedAt": null
}{
"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>",
"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>",
"problems": [
{
"path": [
"<string>"
],
"code": "not_a_circular_project",
"message": "<string>"
}
],
"raterRebuildId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "<string>"
}Authorizations
Headers
Body
A state, by its two-letter USPS code in capitals, such as VA.
AL, AK, AZ, AR, CA, CO, CT, DE, DC, FL, GA, HI, ID, IL, IN, IA, KS, KY, LA, ME, MD, MA, MI, MN, MS, MO, MT, NE, NV, NH, NJ, NM, NY, NC, ND, OH, OK, OR, PA, RI, SC, SD, TN, TX, UT, VT, VA, WA, WV, WI, WY Response
The draft rebuild.
- Option 1
- Option 2
- Option 3
- Option 4
A state, by its two-letter USPS code in capitals, such as VA.
AL, AK, AZ, AR, CA, CO, CT, DE, DC, FL, GA, HI, ID, IL, IN, IA, KS, KY, LA, ME, MD, MA, MI, MN, MS, MO, MT, NE, NV, NH, NJ, NM, NY, NC, ND, OH, OK, OR, PA, RI, SC, SD, TN, TX, UT, VT, VA, WA, WV, WI, WY