curl --request POST \
--url https://vision.pingintel.com/api/v1/submission/{pingid}/cat/zone-sets \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"zone_scheme": "zone_scheme:zurich:v1",
"name": "Zurich"
}
'import requests
url = "https://vision.pingintel.com/api/v1/submission/{pingid}/cat/zone-sets"
payload = {
"zone_scheme": "zone_scheme:zurich:v1",
"name": "Zurich"
}
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({zone_scheme: 'zone_scheme:zurich:v1', name: 'Zurich'})
};
fetch('https://vision.pingintel.com/api/v1/submission/{pingid}/cat/zone-sets', 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/zone-sets",
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([
'zone_scheme' => 'zone_scheme:zurich:v1',
'name' => 'Zurich'
]),
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/zone-sets"
payload := strings.NewReader("{\n \"zone_scheme\": \"zone_scheme:zurich:v1\",\n \"name\": \"Zurich\"\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/zone-sets")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"zone_scheme\": \"zone_scheme:zurich:v1\",\n \"name\": \"Zurich\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vision.pingintel.com/api/v1/submission/{pingid}/cat/zone-sets")
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 \"zone_scheme\": \"zone_scheme:zurich:v1\",\n \"name\": \"Zurich\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "019dd58e-eb2a-7958-8070-570003e4ee44",
"name": "Zurich",
"zone_scheme": "zone_scheme:zurich:v1",
"status": "C",
"status_message": null,
"location_count": 120,
"modified_time": "2026-04-29T02:10:01.000000Z",
"created_time": "2026-04-29T02:10:00.000000Z"
}Create Zone Set
Adds a zone set to a submission: its locations zoned by a zone scheme, which annotates each location with the zone set’s zones. A small schedule is zoned while handling the request (201, status C or F); a larger one is zoned in the background (202, status P): poll the zone set (GET .../zone-sets/{uuid}) until its status is C (completed) or F (failed). Refresh the locations once it’s C. The zone scheme must be one of the submission’s policy terms config’s available_zone_schemes, with zone sets enabled. Without a name, the zone set is named after its zone scheme. A number is added to a name the submission already has, unless that zone set’s zoning failed: then it’s taken over (keeping its uuid) with the new zone scheme and zoned again. If a zone set with the name is still being zoned with the same zone scheme, that zone set is returned (202) instead of zoning another; with a different zone scheme, it’s a 400.
curl --request POST \
--url https://vision.pingintel.com/api/v1/submission/{pingid}/cat/zone-sets \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"zone_scheme": "zone_scheme:zurich:v1",
"name": "Zurich"
}
'import requests
url = "https://vision.pingintel.com/api/v1/submission/{pingid}/cat/zone-sets"
payload = {
"zone_scheme": "zone_scheme:zurich:v1",
"name": "Zurich"
}
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({zone_scheme: 'zone_scheme:zurich:v1', name: 'Zurich'})
};
fetch('https://vision.pingintel.com/api/v1/submission/{pingid}/cat/zone-sets', 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/zone-sets",
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([
'zone_scheme' => 'zone_scheme:zurich:v1',
'name' => 'Zurich'
]),
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/zone-sets"
payload := strings.NewReader("{\n \"zone_scheme\": \"zone_scheme:zurich:v1\",\n \"name\": \"Zurich\"\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/zone-sets")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"zone_scheme\": \"zone_scheme:zurich:v1\",\n \"name\": \"Zurich\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://vision.pingintel.com/api/v1/submission/{pingid}/cat/zone-sets")
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 \"zone_scheme\": \"zone_scheme:zurich:v1\",\n \"name\": \"Zurich\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "019dd58e-eb2a-7958-8070-570003e4ee44",
"name": "Zurich",
"zone_scheme": "zone_scheme:zurich:v1",
"status": "C",
"status_message": null,
"location_count": 120,
"modified_time": "2026-04-29T02:10:01.000000Z",
"created_time": "2026-04-29T02:10:00.000000Z"
}Authorizations
Supports Token-prefixed API keys and Bearer-prefixed JWT-based authentication.
Path Parameters
Body
Name of the zone scheme the zone set uses, e.g. 'zone_scheme:zurich:v1'; one of the policy terms config's available_zone_schemes.
Defaults to the zone scheme's label. A number is added if the submission already has the name, unless that zone set's zoning failed: then it's taken over.
100Response
100Whether the zone set's zones have been assigned to the submission's locations: P (pending), I (in progress), C (completed; refresh the locations to see them) or F (failed, see status_message).
P- PendingI- In ProgressC- CompletedF- Failed
P, I, C, F UUID of the zone set
Name of the zone scheme the zone set uses, e.g. 'zone_scheme:zurich:v1'.
100How many locations were zoned.
-2147483648 <= x <= 2147483647Why zoning the locations failed.