Create Peril Group
curl --request POST \
--url https://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"group_label": "EQ2",
"included": true
}
'import requests
url = "https://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups"
payload = {
"group_label": "EQ2",
"included": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({group_label: 'EQ2', included: true})
};
fetch('https://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups', 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://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups",
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([
'group_label' => 'EQ2',
'included' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups"
payload := strings.NewReader("{\n \"group_label\": \"EQ2\",\n \"included\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"group_label\": \"EQ2\",\n \"included\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"group_label\": \"EQ2\",\n \"included\": true\n}"
response = http.request(request)
puts response.read_body{
"uuid": "019dd58e-eb2a-7958-8070-570003e4ee90",
"section_name": "Earthquake",
"section_uuid": "019dd58e-eb2a-7958-8070-570003e4ee50",
"display_name": "EQ2",
"group_label": "EQ2",
"is_user_created": true,
"included": true,
"bi_days_deductible": null,
"min_deductible": null,
"max_deductible": null,
"sublimit": null,
"self_insured_retentions": null,
"agg_limit": null,
"agg_deductible": null,
"location_deductible_format": null,
"location_deductible_type": null,
"location_deductible": null,
"is_bi_split_allowed": false,
"is_sublimit_combined": true,
"bi_sublimit": null,
"pd_sublimit": null,
"is_deductible_combined": true,
"pd_min_deductible": null,
"pd_max_deductible": null,
"pd_location_deductible_format": null,
"pd_location_deductible": null,
"bi_min_deductible": null,
"bi_max_deductible": null,
"bi_location_deductible_format": null,
"bi_location_deductible": null,
"subperils": []
}CAT Modeling
Create Peril Group
Creates a new, user-created peril group on a coverage option. group_label must be a label that at least one subperil on this coverage option allows via allowed_peril_groups, and must not already be in use — see List available group labels. display_name defaults to group_label if omitted, and must also be unique on the coverage option.
POST
/
api
/
v1
/
submission
/
{pingid}
/
cat
/
coverage-options
/
{coverage_option_uuid}
/
peril-groups
Create Peril Group
curl --request POST \
--url https://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"group_label": "EQ2",
"included": true
}
'import requests
url = "https://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups"
payload = {
"group_label": "EQ2",
"included": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({group_label: 'EQ2', included: true})
};
fetch('https://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups', 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://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups",
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([
'group_label' => 'EQ2',
'included' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups"
payload := strings.NewReader("{\n \"group_label\": \"EQ2\",\n \"included\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"group_label\": \"EQ2\",\n \"included\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vision.pingintel.com/api/v1/submission/{pingid}/cat/coverage-options/{coverage_option_uuid}/peril-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"group_label\": \"EQ2\",\n \"included\": true\n}"
response = http.request(request)
puts response.read_body{
"uuid": "019dd58e-eb2a-7958-8070-570003e4ee90",
"section_name": "Earthquake",
"section_uuid": "019dd58e-eb2a-7958-8070-570003e4ee50",
"display_name": "EQ2",
"group_label": "EQ2",
"is_user_created": true,
"included": true,
"bi_days_deductible": null,
"min_deductible": null,
"max_deductible": null,
"sublimit": null,
"self_insured_retentions": null,
"agg_limit": null,
"agg_deductible": null,
"location_deductible_format": null,
"location_deductible_type": null,
"location_deductible": null,
"is_bi_split_allowed": false,
"is_sublimit_combined": true,
"bi_sublimit": null,
"pd_sublimit": null,
"is_deductible_combined": true,
"pd_min_deductible": null,
"pd_max_deductible": null,
"pd_location_deductible_format": null,
"pd_location_deductible": null,
"bi_min_deductible": null,
"bi_max_deductible": null,
"bi_location_deductible_format": null,
"bi_location_deductible": null,
"subperils": []
}Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Drops the agg limit/deductible fields when settings.ENABLE_AGG_LIMITS_AND_DEDUCTIBLES is off.
Writes are partial, so a body that still sends them leaves the stored values untouched.
Response
201 - application/json
Drops the agg limit/deductible fields when settings.ENABLE_AGG_LIMITS_AND_DEDUCTIBLES is off.
Writes are partial, so a body that still sends them leaves the stored values untouched.
⌘I