Get zones schema
import requests
url = "https://{FUSION_HOST}/api/templating/zones/_schema"
response = requests.get(url)
print(response.text)HttpResponse<String> response = Unirest.get("https://{FUSION_HOST}/api/templating/zones/_schema")
.asString();const options = {method: 'GET'};
fetch('https://{FUSION_HOST}/api/templating/zones/_schema', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://{FUSION_HOST}/api/templating/zones/_schema")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION_HOST}/api/templating/zones/_schema"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION_HOST}/api/templating/zones/_schema",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://{FUSION_HOST}/api/templating/zones/_schema{
"type": "Templating Zone",
"title": "Templating Template",
"description": "Stores configuration of the templates.",
"properties": {
"dirty": true,
"metadata": {},
"neverPublished": false,
"isStaging": true,
"isPublished": true,
"inTemplates": [
"e123f4bc-5e7e-46dd-9be8-71a4f73e511a, 8084969c-bd23-40f7-9acf-c68d6798bec2, 441eb3be-7de6-470a-8141-e416a15c7db1, fb148491-b39e-46d1-af33-44cd964d8ee0"
],
"name": "Results List",
"id": "6a163bd4-5098-466c-22aa-40bf68294303",
"type": "result-list",
"tags": [
"zones-controller"
],
"isOmitFilters": false,
"queryProfile": "query-profile",
"uiTreatment": "<string>"
},
"category": "<string>",
"categoryPriority": 123,
"unsafe": true
}This response has no body data.This response has no body data.This response has no body data.Get zones schema
Retrieve the detailed structure of the contents of a zone.
GET
/
zones
/
_schema
Get zones schema
import requests
url = "https://{FUSION_HOST}/api/templating/zones/_schema"
response = requests.get(url)
print(response.text)HttpResponse<String> response = Unirest.get("https://{FUSION_HOST}/api/templating/zones/_schema")
.asString();const options = {method: 'GET'};
fetch('https://{FUSION_HOST}/api/templating/zones/_schema', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://{FUSION_HOST}/api/templating/zones/_schema")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION_HOST}/api/templating/zones/_schema"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION_HOST}/api/templating/zones/_schema",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://{FUSION_HOST}/api/templating/zones/_schema{
"type": "Templating Zone",
"title": "Templating Template",
"description": "Stores configuration of the templates.",
"properties": {
"dirty": true,
"metadata": {},
"neverPublished": false,
"isStaging": true,
"isPublished": true,
"inTemplates": [
"e123f4bc-5e7e-46dd-9be8-71a4f73e511a, 8084969c-bd23-40f7-9acf-c68d6798bec2, 441eb3be-7de6-470a-8141-e416a15c7db1, fb148491-b39e-46d1-af33-44cd964d8ee0"
],
"name": "Results List",
"id": "6a163bd4-5098-466c-22aa-40bf68294303",
"type": "result-list",
"tags": [
"zones-controller"
],
"isOmitFilters": false,
"queryProfile": "query-profile",
"uiTreatment": "<string>"
},
"category": "<string>",
"categoryPriority": 123,
"unsafe": true
}This response has no body data.This response has no body data.This response has no body data.Response
OK
Was this page helpful?