curl --request PUT \
--url https://api.edenai.run/v3/manage/routing-policies/{name}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "",
"enabled": true,
"targets": [
{
"model": "<string>",
"weight": 50,
"retries": 1,
"routing": {
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
],
"ignored_providers": [
"<string>"
],
"order": [
"<string>"
],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": true
},
"region": "<string>"
}
],
"defaults": {
"routing": {
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
],
"ignored_providers": [
"<string>"
],
"order": [
"<string>"
],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": true
},
"credentials": "auto",
"retries": 0
},
"lock": [],
"fallbacks": [
"<string>"
]
}
'import requests
url = "https://api.edenai.run/v3/manage/routing-policies/{name}/"
payload = {
"description": "",
"enabled": True,
"targets": [
{
"model": "<string>",
"weight": 50,
"retries": 1,
"routing": {
"sticky": True,
"allow_fallbacks": True,
"allowed_providers": ["<string>"],
"ignored_providers": ["<string>"],
"order": ["<string>"],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": True
},
"region": "<string>"
}
],
"defaults": {
"routing": {
"sticky": True,
"allow_fallbacks": True,
"allowed_providers": ["<string>"],
"ignored_providers": ["<string>"],
"order": ["<string>"],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": True
},
"credentials": "auto",
"retries": 0
},
"lock": [],
"fallbacks": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: '',
enabled: true,
targets: [
{
model: '<string>',
weight: 50,
retries: 1,
routing: {
sticky: true,
allow_fallbacks: true,
allowed_providers: ['<string>'],
ignored_providers: ['<string>'],
order: ['<string>'],
max_price: {input: 1, output: 1},
zero_data_retention: true
},
region: '<string>'
}
],
defaults: {
routing: {
sticky: true,
allow_fallbacks: true,
allowed_providers: ['<string>'],
ignored_providers: ['<string>'],
order: ['<string>'],
max_price: {input: 1, output: 1},
zero_data_retention: true
},
credentials: 'auto',
retries: 0
},
lock: [],
fallbacks: ['<string>']
})
};
fetch('https://api.edenai.run/v3/manage/routing-policies/{name}/', 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://api.edenai.run/v3/manage/routing-policies/{name}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'description' => '',
'enabled' => true,
'targets' => [
[
'model' => '<string>',
'weight' => 50,
'retries' => 1,
'routing' => [
'sticky' => true,
'allow_fallbacks' => true,
'allowed_providers' => [
'<string>'
],
'ignored_providers' => [
'<string>'
],
'order' => [
'<string>'
],
'max_price' => [
'input' => 1,
'output' => 1
],
'zero_data_retention' => true
],
'region' => '<string>'
]
],
'defaults' => [
'routing' => [
'sticky' => true,
'allow_fallbacks' => true,
'allowed_providers' => [
'<string>'
],
'ignored_providers' => [
'<string>'
],
'order' => [
'<string>'
],
'max_price' => [
'input' => 1,
'output' => 1
],
'zero_data_retention' => true
],
'credentials' => 'auto',
'retries' => 0
],
'lock' => [
],
'fallbacks' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.edenai.run/v3/manage/routing-policies/{name}/"
payload := strings.NewReader("{\n \"description\": \"\",\n \"enabled\": true,\n \"targets\": [\n {\n \"model\": \"<string>\",\n \"weight\": 50,\n \"retries\": 1,\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ],\n \"ignored_providers\": [\n \"<string>\"\n ],\n \"order\": [\n \"<string>\"\n ],\n \"max_price\": {\n \"input\": 1,\n \"output\": 1\n },\n \"zero_data_retention\": true\n },\n \"region\": \"<string>\"\n }\n ],\n \"defaults\": {\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ],\n \"ignored_providers\": [\n \"<string>\"\n ],\n \"order\": [\n \"<string>\"\n ],\n \"max_price\": {\n \"input\": 1,\n \"output\": 1\n },\n \"zero_data_retention\": true\n },\n \"credentials\": \"auto\",\n \"retries\": 0\n },\n \"lock\": [],\n \"fallbacks\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.edenai.run/v3/manage/routing-policies/{name}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"\",\n \"enabled\": true,\n \"targets\": [\n {\n \"model\": \"<string>\",\n \"weight\": 50,\n \"retries\": 1,\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ],\n \"ignored_providers\": [\n \"<string>\"\n ],\n \"order\": [\n \"<string>\"\n ],\n \"max_price\": {\n \"input\": 1,\n \"output\": 1\n },\n \"zero_data_retention\": true\n },\n \"region\": \"<string>\"\n }\n ],\n \"defaults\": {\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ],\n \"ignored_providers\": [\n \"<string>\"\n ],\n \"order\": [\n \"<string>\"\n ],\n \"max_price\": {\n \"input\": 1,\n \"output\": 1\n },\n \"zero_data_retention\": true\n },\n \"credentials\": \"auto\",\n \"retries\": 0\n },\n \"lock\": [],\n \"fallbacks\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.edenai.run/v3/manage/routing-policies/{name}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"\",\n \"enabled\": true,\n \"targets\": [\n {\n \"model\": \"<string>\",\n \"weight\": 50,\n \"retries\": 1,\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ],\n \"ignored_providers\": [\n \"<string>\"\n ],\n \"order\": [\n \"<string>\"\n ],\n \"max_price\": {\n \"input\": 1,\n \"output\": 1\n },\n \"zero_data_retention\": true\n },\n \"region\": \"<string>\"\n }\n ],\n \"defaults\": {\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ],\n \"ignored_providers\": [\n \"<string>\"\n ],\n \"order\": [\n \"<string>\"\n ],\n \"max_price\": {\n \"input\": 1,\n \"output\": 1\n },\n \"zero_data_retention\": true\n },\n \"credentials\": \"auto\",\n \"retries\": 0\n },\n \"lock\": [],\n \"fallbacks\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"scope": "organization",
"description": "<string>",
"enabled": true,
"strategy": "fallback",
"targets": [
{
"model": "<string>",
"weight": 50,
"retries": 1,
"credentials": "auto",
"routing": {
"sort": "cost",
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
],
"ignored_providers": [
"<string>"
],
"order": [
"<string>"
],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": true
},
"region": "<string>"
}
],
"defaults": {
"routing": {
"sort": "cost",
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
],
"ignored_providers": [
"<string>"
],
"order": [
"<string>"
],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": true
},
"credentials": "auto",
"retries": 0
},
"lock": [
"sort"
],
"fallbacks": [
"<string>"
],
"version": 123,
"etag": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": "jsmith@example.com",
"updated_by": "jsmith@example.com"
}{
"name": "<string>",
"scope": "organization",
"description": "<string>",
"enabled": true,
"strategy": "fallback",
"targets": [
{
"model": "<string>",
"weight": 50,
"retries": 1,
"credentials": "auto",
"routing": {
"sort": "cost",
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
],
"ignored_providers": [
"<string>"
],
"order": [
"<string>"
],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": true
},
"region": "<string>"
}
],
"defaults": {
"routing": {
"sort": "cost",
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
],
"ignored_providers": [
"<string>"
],
"order": [
"<string>"
],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": true
},
"credentials": "auto",
"retries": 0
},
"lock": [
"sort"
],
"fallbacks": [
"<string>"
],
"version": 123,
"etag": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": "jsmith@example.com",
"updated_by": "jsmith@example.com"
}Create or replace a routing policy
Creates the policy (201) or replaces it whole (200), incrementing version, in the scope of your credential: the organization’s with a management key, your personal one otherwise (a personal policy may share a name with the organization’s and then wins on your keys). Send If-Match: "<version>" to replace only the version you read; a mismatch is a 412 carrying the current version (0 when nothing is stored, and If-Match: "0" creates only when nothing is stored yet). A body that breaks a rule is a 422 whose error.fields names each offending field by path. Targets must be models the catalogue serves, canonical names, or aliases. With a management key, the organization’s policies are managed (manage:read to read, manage:write to write). With your own API key or session token, your personal policies are managed, and the organization’s can be read.
curl --request PUT \
--url https://api.edenai.run/v3/manage/routing-policies/{name}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "",
"enabled": true,
"targets": [
{
"model": "<string>",
"weight": 50,
"retries": 1,
"routing": {
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
],
"ignored_providers": [
"<string>"
],
"order": [
"<string>"
],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": true
},
"region": "<string>"
}
],
"defaults": {
"routing": {
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
],
"ignored_providers": [
"<string>"
],
"order": [
"<string>"
],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": true
},
"credentials": "auto",
"retries": 0
},
"lock": [],
"fallbacks": [
"<string>"
]
}
'import requests
url = "https://api.edenai.run/v3/manage/routing-policies/{name}/"
payload = {
"description": "",
"enabled": True,
"targets": [
{
"model": "<string>",
"weight": 50,
"retries": 1,
"routing": {
"sticky": True,
"allow_fallbacks": True,
"allowed_providers": ["<string>"],
"ignored_providers": ["<string>"],
"order": ["<string>"],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": True
},
"region": "<string>"
}
],
"defaults": {
"routing": {
"sticky": True,
"allow_fallbacks": True,
"allowed_providers": ["<string>"],
"ignored_providers": ["<string>"],
"order": ["<string>"],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": True
},
"credentials": "auto",
"retries": 0
},
"lock": [],
"fallbacks": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: '',
enabled: true,
targets: [
{
model: '<string>',
weight: 50,
retries: 1,
routing: {
sticky: true,
allow_fallbacks: true,
allowed_providers: ['<string>'],
ignored_providers: ['<string>'],
order: ['<string>'],
max_price: {input: 1, output: 1},
zero_data_retention: true
},
region: '<string>'
}
],
defaults: {
routing: {
sticky: true,
allow_fallbacks: true,
allowed_providers: ['<string>'],
ignored_providers: ['<string>'],
order: ['<string>'],
max_price: {input: 1, output: 1},
zero_data_retention: true
},
credentials: 'auto',
retries: 0
},
lock: [],
fallbacks: ['<string>']
})
};
fetch('https://api.edenai.run/v3/manage/routing-policies/{name}/', 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://api.edenai.run/v3/manage/routing-policies/{name}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'description' => '',
'enabled' => true,
'targets' => [
[
'model' => '<string>',
'weight' => 50,
'retries' => 1,
'routing' => [
'sticky' => true,
'allow_fallbacks' => true,
'allowed_providers' => [
'<string>'
],
'ignored_providers' => [
'<string>'
],
'order' => [
'<string>'
],
'max_price' => [
'input' => 1,
'output' => 1
],
'zero_data_retention' => true
],
'region' => '<string>'
]
],
'defaults' => [
'routing' => [
'sticky' => true,
'allow_fallbacks' => true,
'allowed_providers' => [
'<string>'
],
'ignored_providers' => [
'<string>'
],
'order' => [
'<string>'
],
'max_price' => [
'input' => 1,
'output' => 1
],
'zero_data_retention' => true
],
'credentials' => 'auto',
'retries' => 0
],
'lock' => [
],
'fallbacks' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.edenai.run/v3/manage/routing-policies/{name}/"
payload := strings.NewReader("{\n \"description\": \"\",\n \"enabled\": true,\n \"targets\": [\n {\n \"model\": \"<string>\",\n \"weight\": 50,\n \"retries\": 1,\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ],\n \"ignored_providers\": [\n \"<string>\"\n ],\n \"order\": [\n \"<string>\"\n ],\n \"max_price\": {\n \"input\": 1,\n \"output\": 1\n },\n \"zero_data_retention\": true\n },\n \"region\": \"<string>\"\n }\n ],\n \"defaults\": {\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ],\n \"ignored_providers\": [\n \"<string>\"\n ],\n \"order\": [\n \"<string>\"\n ],\n \"max_price\": {\n \"input\": 1,\n \"output\": 1\n },\n \"zero_data_retention\": true\n },\n \"credentials\": \"auto\",\n \"retries\": 0\n },\n \"lock\": [],\n \"fallbacks\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.edenai.run/v3/manage/routing-policies/{name}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"\",\n \"enabled\": true,\n \"targets\": [\n {\n \"model\": \"<string>\",\n \"weight\": 50,\n \"retries\": 1,\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ],\n \"ignored_providers\": [\n \"<string>\"\n ],\n \"order\": [\n \"<string>\"\n ],\n \"max_price\": {\n \"input\": 1,\n \"output\": 1\n },\n \"zero_data_retention\": true\n },\n \"region\": \"<string>\"\n }\n ],\n \"defaults\": {\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ],\n \"ignored_providers\": [\n \"<string>\"\n ],\n \"order\": [\n \"<string>\"\n ],\n \"max_price\": {\n \"input\": 1,\n \"output\": 1\n },\n \"zero_data_retention\": true\n },\n \"credentials\": \"auto\",\n \"retries\": 0\n },\n \"lock\": [],\n \"fallbacks\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.edenai.run/v3/manage/routing-policies/{name}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"\",\n \"enabled\": true,\n \"targets\": [\n {\n \"model\": \"<string>\",\n \"weight\": 50,\n \"retries\": 1,\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ],\n \"ignored_providers\": [\n \"<string>\"\n ],\n \"order\": [\n \"<string>\"\n ],\n \"max_price\": {\n \"input\": 1,\n \"output\": 1\n },\n \"zero_data_retention\": true\n },\n \"region\": \"<string>\"\n }\n ],\n \"defaults\": {\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ],\n \"ignored_providers\": [\n \"<string>\"\n ],\n \"order\": [\n \"<string>\"\n ],\n \"max_price\": {\n \"input\": 1,\n \"output\": 1\n },\n \"zero_data_retention\": true\n },\n \"credentials\": \"auto\",\n \"retries\": 0\n },\n \"lock\": [],\n \"fallbacks\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"scope": "organization",
"description": "<string>",
"enabled": true,
"strategy": "fallback",
"targets": [
{
"model": "<string>",
"weight": 50,
"retries": 1,
"credentials": "auto",
"routing": {
"sort": "cost",
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
],
"ignored_providers": [
"<string>"
],
"order": [
"<string>"
],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": true
},
"region": "<string>"
}
],
"defaults": {
"routing": {
"sort": "cost",
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
],
"ignored_providers": [
"<string>"
],
"order": [
"<string>"
],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": true
},
"credentials": "auto",
"retries": 0
},
"lock": [
"sort"
],
"fallbacks": [
"<string>"
],
"version": 123,
"etag": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": "jsmith@example.com",
"updated_by": "jsmith@example.com"
}{
"name": "<string>",
"scope": "organization",
"description": "<string>",
"enabled": true,
"strategy": "fallback",
"targets": [
{
"model": "<string>",
"weight": 50,
"retries": 1,
"credentials": "auto",
"routing": {
"sort": "cost",
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
],
"ignored_providers": [
"<string>"
],
"order": [
"<string>"
],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": true
},
"region": "<string>"
}
],
"defaults": {
"routing": {
"sort": "cost",
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
],
"ignored_providers": [
"<string>"
],
"order": [
"<string>"
],
"max_price": {
"input": 1,
"output": 1
},
"zero_data_retention": true
},
"credentials": "auto",
"retries": 0
},
"lock": [
"sort"
],
"fallbacks": [
"<string>"
],
"version": 123,
"etag": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"created_by": "jsmith@example.com",
"updated_by": "jsmith@example.com"
}Authorizations
A management key (mgmt-eden...) to manage the organization's routing policies, or your own API key (sk-eden...) or session token to manage your personal ones, sent as Authorization: Bearer <key>.
Path Parameters
The policy's handle, as called with @edenai/{name}.
Query Parameters
Optional, and only ever the scope your credential writes: organization with a management key, user with your own API key or session token. Naming the other one is refused (403) rather than silently written elsewhere.
organization, user Body
The body of a PUT on a routing policy: what the policy tries and how, its defaults,
its locked fields and its last-resort fallbacks.
500fallback- Fallbackload_balance- Load balancecheapest- Cheapestfastest- Fastest
fallback, load_balance, cheapest, fastest 1 - 32 elementsShow child attributes
Show child attributes
Settings applied to every target unless the target overrides them.
Show child attributes
Show child attributes
sort- sortsticky- stickyallow_fallbacks- allow_fallbacksallowed_providers- allowed_providersignored_providers- ignored_providersorder- ordermax_price- max_pricezero_data_retention- zero_data_retentionregion- region
sort, sticky, allow_fallbacks, allowed_providers, ignored_providers, order, max_price, zero_data_retention, region 71Response
A routing policy as the management API returns it.
organization for a shared policy, user for a personal one.
organization- Organizationuser- User
organization, user fallback- Fallbackload_balance- Load balancecheapest- Cheapestfastest- Fastest
fallback, load_balance, cheapest, fastest Show child attributes
Show child attributes
Settings applied to every target unless the target overrides them.
Show child attributes
Show child attributes
sort- sortsticky- stickyallow_fallbacks- allow_fallbacksallowed_providers- allowed_providersignored_providers- ignored_providersorder- ordermax_price- max_pricezero_data_retention- zero_data_retentionregion- region
sort, sticky, allow_fallbacks, allowed_providers, ignored_providers, order, max_price, zero_data_retention, region The version, as the If-Match header expects it.
Email of the creator, or null for an API write.
Email of the last editor, or null for an API write.