Get a JSON schema
import requests
url = "https://{FUSION_HOST}/api/query-stages/schema/{type}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://{FUSION_HOST}/api/query-stages/schema/{type}")
.header("Authorization", "Basic <encoded-value>")
.asString();const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://{FUSION_HOST}/api/query-stages/schema/{type}', 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/query-stages/schema/{type}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION_HOST}/api/query-stages/schema/{type}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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/query-stages/schema/{type}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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/query-stages/schema/{type} \
--header 'Authorization: Basic <encoded-value>'{
"type": "object",
"title": "Additional Query Parameters",
"description": "This stage allows you to set, append, and remove additional query parameters",
"properties": {
"skip": {
"type": "boolean",
"title": "Skip This Stage",
"description": "Set to true to skip this stage.",
"default": false,
"hints": [
"advanced"
]
},
"label": {
"type": "string",
"title": "Label",
"description": "A unique label for this stage.",
"hints": [
"advanced"
],
"maxLength": 255
},
"condition": {
"type": "string",
"title": "Condition",
"description": "Define a conditional script that must result in true or false. This can be used to determine if the stage should process or not.",
"hints": [
"code",
"javascript",
"advanced"
]
},
"params": {
"type": "array",
"title": "Parameters and Values",
"items": {
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"type": "string",
"title": "Parameter Name"
},
"value": {
"type": "string",
"title": "Parameter Value"
},
"policy": {
"type": "string",
"title": "Update Policy",
"enum": [
"replace",
"append",
"remove",
"default"
],
"default": "append"
}
}
}
}
},
"category": "Advanced",
"categoryPriority": 2
}Get a JSON schema
Get the JSON schema for a single query stage type.
GET
/
query-stages
/
schema
/
{type}
Get a JSON schema
import requests
url = "https://{FUSION_HOST}/api/query-stages/schema/{type}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://{FUSION_HOST}/api/query-stages/schema/{type}")
.header("Authorization", "Basic <encoded-value>")
.asString();const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://{FUSION_HOST}/api/query-stages/schema/{type}', 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/query-stages/schema/{type}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION_HOST}/api/query-stages/schema/{type}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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/query-stages/schema/{type}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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/query-stages/schema/{type} \
--header 'Authorization: Basic <encoded-value>'{
"type": "object",
"title": "Additional Query Parameters",
"description": "This stage allows you to set, append, and remove additional query parameters",
"properties": {
"skip": {
"type": "boolean",
"title": "Skip This Stage",
"description": "Set to true to skip this stage.",
"default": false,
"hints": [
"advanced"
]
},
"label": {
"type": "string",
"title": "Label",
"description": "A unique label for this stage.",
"hints": [
"advanced"
],
"maxLength": 255
},
"condition": {
"type": "string",
"title": "Condition",
"description": "Define a conditional script that must result in true or false. This can be used to determine if the stage should process or not.",
"hints": [
"code",
"javascript",
"advanced"
]
},
"params": {
"type": "array",
"title": "Parameters and Values",
"items": {
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"type": "string",
"title": "Parameter Name"
},
"value": {
"type": "string",
"title": "Parameter Value"
},
"policy": {
"type": "string",
"title": "Update Policy",
"enum": [
"replace",
"append",
"remove",
"default"
],
"default": "append"
}
}
}
}
},
"category": "Advanced",
"categoryPriority": 2
}Authorizations
Basic authAPI key
Path Parameters
Response
200 - application/json
OK
Represents a structured object type definition used in the Experience Manager.
Was this page helpful?