Get Layer
curl --request PATCH \
--url https://vision.pingintel.com/api/v1/submission/{pingid}/cat/layer-structures/{uuid}/layers/{layer_uuid} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"attachment": "<string>",
"included": true,
"limit": "<string>",
"name": "<string>",
"participation_percent": "<string>",
"premium": "<string>"
}
'import requests
url = "https://vision.pingintel.com/api/v1/submission/{pingid}/cat/layer-structures/{uuid}/layers/{layer_uuid}"
payload = {
"attachment": "<string>",
"included": True,
"limit": "<string>",
"name": "<string>",
"participation_percent": "<string>",
"premium": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
attachment: '<string>',
included: true,
limit: '<string>',
name: '<string>',
participation_percent: '<string>',
premium: '<string>'
})
};
fetch('https://vision.pingintel.com/api/v1/submission/{pingid}/cat/layer-structures/{uuid}/layers/{layer_uuid}', 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/layer-structures/{uuid}/layers/{layer_uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'attachment' => '<string>',
'included' => true,
'limit' => '<string>',
'name' => '<string>',
'participation_percent' => '<string>',
'premium' => '<string>'
]),
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/layer-structures/{uuid}/layers/{layer_uuid}"
payload := strings.NewReader("{\n \"attachment\": \"<string>\",\n \"included\": true,\n \"limit\": \"<string>\",\n \"name\": \"<string>\",\n \"participation_percent\": \"<string>\",\n \"premium\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://vision.pingintel.com/api/v1/submission/{pingid}/cat/layer-structures/{uuid}/layers/{layer_uuid}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"attachment\": \"<string>\",\n \"included\": true,\n \"limit\": \"<string>\",\n \"name\": \"<string>\",\n \"participation_percent\": \"<string>\",\n \"premium\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vision.pingintel.com/api/v1/submission/{pingid}/cat/layer-structures/{uuid}/layers/{layer_uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"attachment\": \"<string>\",\n \"included\": true,\n \"limit\": \"<string>\",\n \"name\": \"<string>\",\n \"participation_percent\": \"<string>\",\n \"premium\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "019dd58e-eb2a-7958-8070-570003e4ee12",
"name": "15x25",
"included": true,
"attachment": 25000000,
"limit": 15000000,
"participation_amount": null,
"participation_percent": 100,
"premium": 250000
}CAT Modeling
Get Layer
Updates a layer’s terms. If name was auto-generated (i.e. never explicitly set) and attachment/limit change, the name is regenerated to match; an explicitly-set name is left untouched unless a new name is provided.
PATCH
/
api
/
v1
/
submission
/
{pingid}
/
cat
/
layer-structures
/
{uuid}
/
layers
/
{layer_uuid}
Get Layer
curl --request PATCH \
--url https://vision.pingintel.com/api/v1/submission/{pingid}/cat/layer-structures/{uuid}/layers/{layer_uuid} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"attachment": "<string>",
"included": true,
"limit": "<string>",
"name": "<string>",
"participation_percent": "<string>",
"premium": "<string>"
}
'import requests
url = "https://vision.pingintel.com/api/v1/submission/{pingid}/cat/layer-structures/{uuid}/layers/{layer_uuid}"
payload = {
"attachment": "<string>",
"included": True,
"limit": "<string>",
"name": "<string>",
"participation_percent": "<string>",
"premium": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
attachment: '<string>',
included: true,
limit: '<string>',
name: '<string>',
participation_percent: '<string>',
premium: '<string>'
})
};
fetch('https://vision.pingintel.com/api/v1/submission/{pingid}/cat/layer-structures/{uuid}/layers/{layer_uuid}', 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/layer-structures/{uuid}/layers/{layer_uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'attachment' => '<string>',
'included' => true,
'limit' => '<string>',
'name' => '<string>',
'participation_percent' => '<string>',
'premium' => '<string>'
]),
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/layer-structures/{uuid}/layers/{layer_uuid}"
payload := strings.NewReader("{\n \"attachment\": \"<string>\",\n \"included\": true,\n \"limit\": \"<string>\",\n \"name\": \"<string>\",\n \"participation_percent\": \"<string>\",\n \"premium\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://vision.pingintel.com/api/v1/submission/{pingid}/cat/layer-structures/{uuid}/layers/{layer_uuid}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"attachment\": \"<string>\",\n \"included\": true,\n \"limit\": \"<string>\",\n \"name\": \"<string>\",\n \"participation_percent\": \"<string>\",\n \"premium\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vision.pingintel.com/api/v1/submission/{pingid}/cat/layer-structures/{uuid}/layers/{layer_uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"attachment\": \"<string>\",\n \"included\": true,\n \"limit\": \"<string>\",\n \"name\": \"<string>\",\n \"participation_percent\": \"<string>\",\n \"premium\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "019dd58e-eb2a-7958-8070-570003e4ee12",
"name": "15x25",
"included": true,
"attachment": 25000000,
"limit": 15000000,
"participation_amount": null,
"participation_percent": 100,
"premium": 250000
}Authorizations
Supports Token-prefixed API keys and Bearer-prefixed JWT-based authentication.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Pattern:
^-?\d{0,18}(?:\.\d{0,2})?$Pattern:
^-?\d{0,18}(?:\.\d{0,2})?$Maximum string length:
100Pattern:
^-?\d{0,3}(?:\.\d{0,2})?$Pattern:
^-?\d{0,18}(?:\.\d{0,2})?$Response
200 - application/json
Pattern:
^-?\d{0,18}(?:\.\d{0,2})?$Pattern:
^-?\d{0,18}(?:\.\d{0,2})?$Pattern:
^-?\d{0,3}(?:\.\d{0,2})?$Pattern:
^-?\d{0,18}(?:\.\d{0,2})?$UUID of the layer
⌘I