Skip to main content
GET
/
zones
/
uiTreatments
Get zone UI Treatment field values
import requests

url = "https://{FUSION_HOST.com}/api/templating/zones/uiTreatments"

response = requests.get(url)

print(response.text)
HttpResponse<String> response = Unirest.get("https://{FUSION_HOST.com}/api/templating/zones/uiTreatments")
.asString();
const options = {method: 'GET'};

fetch('https://{FUSION_HOST.com}/api/templating/zones/uiTreatments', 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.com}/api/templating/zones/uiTreatments")

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_body
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://{FUSION_HOST.com}/api/templating/zones/uiTreatments"

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.com}/api/templating/zones/uiTreatments",
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.com}/api/templating/zones/uiTreatments
[
  {
    "isUiTreatment": false,
    "message": "Text included in the response for this zone. If the user interface (UI) is configured to use the zone, the text in this field can be used to influence how the zone is displayed or processed in the UI.",
    "uiTreatment": "uiTreatment field name"
  }
]
This response has no body data.
This response has no body data.
This response has no body data.

Response

OK

isUiTreatment
boolean
default:false

This field specifies if UI Treatment fields have been defined.

message
string

The response message.

Example:

"Text included in the response for this zone. If the user interface (UI) is configured to use the zone, the text in this field can be used to influence how the zone is displayed or processed in the UI."

uiTreatment
string

The name of the field that contains uiTreatment values defined for the zone.

Example:

"uiTreatment field name"