Update an agent optimization
curl --request PATCH \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"latencyOptimization": true,
"judgeModel": "judgeModel",
"metricKey": "metricKey",
"groundTruthResponses": [
"groundTruthResponses",
"groundTruthResponses"
],
"modelChoices": [
"modelChoices",
"modelChoices"
],
"label": "label",
"userInputOptions": [
"userInputOptions",
"userInputOptions"
],
"maxAttempts": 0,
"variableChoices": [
{
"key": ""
},
{
"key": ""
}
],
"tokenOptimization": true,
"tokenLimit": 6,
"variationKey": "variationKey",
"autoCommit": true,
"judges": [
{
"threshold": 1.4658129805029452,
"key": "key"
},
{
"threshold": 1.4658129805029452,
"key": "key"
}
],
"acceptanceStatements": [
{
"statement": "statement",
"threshold": 6.027456183070403
},
{
"statement": "statement",
"threshold": 6.027456183070403
}
]
}
'import requests
url = "https://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey}"
payload = {
"latencyOptimization": True,
"judgeModel": "judgeModel",
"metricKey": "metricKey",
"groundTruthResponses": ["groundTruthResponses", "groundTruthResponses"],
"modelChoices": ["modelChoices", "modelChoices"],
"label": "label",
"userInputOptions": ["userInputOptions", "userInputOptions"],
"maxAttempts": 0,
"variableChoices": [{ "key": "" }, { "key": "" }],
"tokenOptimization": True,
"tokenLimit": 6,
"variationKey": "variationKey",
"autoCommit": True,
"judges": [
{
"threshold": 1.4658129805029452,
"key": "key"
},
{
"threshold": 1.4658129805029452,
"key": "key"
}
],
"acceptanceStatements": [
{
"statement": "statement",
"threshold": 6.027456183070403
},
{
"statement": "statement",
"threshold": 6.027456183070403
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
latencyOptimization: true,
judgeModel: 'judgeModel',
metricKey: 'metricKey',
groundTruthResponses: ['groundTruthResponses', 'groundTruthResponses'],
modelChoices: ['modelChoices', 'modelChoices'],
label: 'label',
userInputOptions: ['userInputOptions', 'userInputOptions'],
maxAttempts: 0,
variableChoices: [{key: ''}, {key: ''}],
tokenOptimization: true,
tokenLimit: 6,
variationKey: 'variationKey',
autoCommit: true,
judges: [
{threshold: 1.4658129805029452, key: 'key'},
{threshold: 1.4658129805029452, key: 'key'}
],
acceptanceStatements: [
{statement: 'statement', threshold: 6.027456183070403},
{statement: 'statement', threshold: 6.027456183070403}
]
})
};
fetch('https://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey}', 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://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'latencyOptimization' => true,
'judgeModel' => 'judgeModel',
'metricKey' => 'metricKey',
'groundTruthResponses' => [
'groundTruthResponses',
'groundTruthResponses'
],
'modelChoices' => [
'modelChoices',
'modelChoices'
],
'label' => 'label',
'userInputOptions' => [
'userInputOptions',
'userInputOptions'
],
'maxAttempts' => 0,
'variableChoices' => [
[
'key' => ''
],
[
'key' => ''
]
],
'tokenOptimization' => true,
'tokenLimit' => 6,
'variationKey' => 'variationKey',
'autoCommit' => true,
'judges' => [
[
'threshold' => 1.4658129805029452,
'key' => 'key'
],
[
'threshold' => 1.4658129805029452,
'key' => 'key'
]
],
'acceptanceStatements' => [
[
'statement' => 'statement',
'threshold' => 6.027456183070403
],
[
'statement' => 'statement',
'threshold' => 6.027456183070403
]
]
]),
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://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey}"
payload := strings.NewReader("{\n \"latencyOptimization\": true,\n \"judgeModel\": \"judgeModel\",\n \"metricKey\": \"metricKey\",\n \"groundTruthResponses\": [\n \"groundTruthResponses\",\n \"groundTruthResponses\"\n ],\n \"modelChoices\": [\n \"modelChoices\",\n \"modelChoices\"\n ],\n \"label\": \"label\",\n \"userInputOptions\": [\n \"userInputOptions\",\n \"userInputOptions\"\n ],\n \"maxAttempts\": 0,\n \"variableChoices\": [\n {\n \"key\": \"\"\n },\n {\n \"key\": \"\"\n }\n ],\n \"tokenOptimization\": true,\n \"tokenLimit\": 6,\n \"variationKey\": \"variationKey\",\n \"autoCommit\": true,\n \"judges\": [\n {\n \"threshold\": 1.4658129805029452,\n \"key\": \"key\"\n },\n {\n \"threshold\": 1.4658129805029452,\n \"key\": \"key\"\n }\n ],\n \"acceptanceStatements\": [\n {\n \"statement\": \"statement\",\n \"threshold\": 6.027456183070403\n },\n {\n \"statement\": \"statement\",\n \"threshold\": 6.027456183070403\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"latencyOptimization\": true,\n \"judgeModel\": \"judgeModel\",\n \"metricKey\": \"metricKey\",\n \"groundTruthResponses\": [\n \"groundTruthResponses\",\n \"groundTruthResponses\"\n ],\n \"modelChoices\": [\n \"modelChoices\",\n \"modelChoices\"\n ],\n \"label\": \"label\",\n \"userInputOptions\": [\n \"userInputOptions\",\n \"userInputOptions\"\n ],\n \"maxAttempts\": 0,\n \"variableChoices\": [\n {\n \"key\": \"\"\n },\n {\n \"key\": \"\"\n }\n ],\n \"tokenOptimization\": true,\n \"tokenLimit\": 6,\n \"variationKey\": \"variationKey\",\n \"autoCommit\": true,\n \"judges\": [\n {\n \"threshold\": 1.4658129805029452,\n \"key\": \"key\"\n },\n {\n \"threshold\": 1.4658129805029452,\n \"key\": \"key\"\n }\n ],\n \"acceptanceStatements\": [\n {\n \"statement\": \"statement\",\n \"threshold\": 6.027456183070403\n },\n {\n \"statement\": \"statement\",\n \"threshold\": 6.027456183070403\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"latencyOptimization\": true,\n \"judgeModel\": \"judgeModel\",\n \"metricKey\": \"metricKey\",\n \"groundTruthResponses\": [\n \"groundTruthResponses\",\n \"groundTruthResponses\"\n ],\n \"modelChoices\": [\n \"modelChoices\",\n \"modelChoices\"\n ],\n \"label\": \"label\",\n \"userInputOptions\": [\n \"userInputOptions\",\n \"userInputOptions\"\n ],\n \"maxAttempts\": 0,\n \"variableChoices\": [\n {\n \"key\": \"\"\n },\n {\n \"key\": \"\"\n }\n ],\n \"tokenOptimization\": true,\n \"tokenLimit\": 6,\n \"variationKey\": \"variationKey\",\n \"autoCommit\": true,\n \"judges\": [\n {\n \"threshold\": 1.4658129805029452,\n \"key\": \"key\"\n },\n {\n \"threshold\": 1.4658129805029452,\n \"key\": \"key\"\n }\n ],\n \"acceptanceStatements\": [\n {\n \"statement\": \"statement\",\n \"threshold\": 6.027456183070403\n },\n {\n \"statement\": \"statement\",\n \"threshold\": 6.027456183070403\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"latencyOptimization": true,
"judgeModel": "judgeModel",
"metricKey": "metricKey",
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"groundTruthResponses": [
"groundTruthResponses",
"groundTruthResponses"
],
"modelChoices": [
"modelChoices",
"modelChoices"
],
"label": "label",
"version": 5,
"userInputOptions": [
"userInputOptions",
"userInputOptions"
],
"maxAttempts": 0,
"createdAt": 2,
"aiConfigKey": "aiConfigKey",
"_access": {
"allowed": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
],
"denied": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
]
},
"variableChoices": [
{
"key": ""
},
{
"key": ""
}
],
"tokenOptimization": true,
"tokenLimit": 5,
"id": "id",
"variationKey": "variationKey",
"autoCommit": true,
"judges": [
{
"threshold": 1.4658129805029452,
"key": "key"
},
{
"threshold": 1.4658129805029452,
"key": "key"
}
],
"key": "key",
"acceptanceStatements": [
{
"statement": "statement",
"threshold": 6.027456183070403
},
{
"statement": "statement",
"threshold": 6.027456183070403
}
]
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}Update an agent optimization
Update an existing agent optimization. Creates a new version of the optimization.
PATCH
/
api
/
v2
/
projects
/
{projectKey}
/
agent-optimizations
/
{optimizationKey}
Update an agent optimization
curl --request PATCH \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"latencyOptimization": true,
"judgeModel": "judgeModel",
"metricKey": "metricKey",
"groundTruthResponses": [
"groundTruthResponses",
"groundTruthResponses"
],
"modelChoices": [
"modelChoices",
"modelChoices"
],
"label": "label",
"userInputOptions": [
"userInputOptions",
"userInputOptions"
],
"maxAttempts": 0,
"variableChoices": [
{
"key": ""
},
{
"key": ""
}
],
"tokenOptimization": true,
"tokenLimit": 6,
"variationKey": "variationKey",
"autoCommit": true,
"judges": [
{
"threshold": 1.4658129805029452,
"key": "key"
},
{
"threshold": 1.4658129805029452,
"key": "key"
}
],
"acceptanceStatements": [
{
"statement": "statement",
"threshold": 6.027456183070403
},
{
"statement": "statement",
"threshold": 6.027456183070403
}
]
}
'import requests
url = "https://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey}"
payload = {
"latencyOptimization": True,
"judgeModel": "judgeModel",
"metricKey": "metricKey",
"groundTruthResponses": ["groundTruthResponses", "groundTruthResponses"],
"modelChoices": ["modelChoices", "modelChoices"],
"label": "label",
"userInputOptions": ["userInputOptions", "userInputOptions"],
"maxAttempts": 0,
"variableChoices": [{ "key": "" }, { "key": "" }],
"tokenOptimization": True,
"tokenLimit": 6,
"variationKey": "variationKey",
"autoCommit": True,
"judges": [
{
"threshold": 1.4658129805029452,
"key": "key"
},
{
"threshold": 1.4658129805029452,
"key": "key"
}
],
"acceptanceStatements": [
{
"statement": "statement",
"threshold": 6.027456183070403
},
{
"statement": "statement",
"threshold": 6.027456183070403
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
latencyOptimization: true,
judgeModel: 'judgeModel',
metricKey: 'metricKey',
groundTruthResponses: ['groundTruthResponses', 'groundTruthResponses'],
modelChoices: ['modelChoices', 'modelChoices'],
label: 'label',
userInputOptions: ['userInputOptions', 'userInputOptions'],
maxAttempts: 0,
variableChoices: [{key: ''}, {key: ''}],
tokenOptimization: true,
tokenLimit: 6,
variationKey: 'variationKey',
autoCommit: true,
judges: [
{threshold: 1.4658129805029452, key: 'key'},
{threshold: 1.4658129805029452, key: 'key'}
],
acceptanceStatements: [
{statement: 'statement', threshold: 6.027456183070403},
{statement: 'statement', threshold: 6.027456183070403}
]
})
};
fetch('https://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey}', 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://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'latencyOptimization' => true,
'judgeModel' => 'judgeModel',
'metricKey' => 'metricKey',
'groundTruthResponses' => [
'groundTruthResponses',
'groundTruthResponses'
],
'modelChoices' => [
'modelChoices',
'modelChoices'
],
'label' => 'label',
'userInputOptions' => [
'userInputOptions',
'userInputOptions'
],
'maxAttempts' => 0,
'variableChoices' => [
[
'key' => ''
],
[
'key' => ''
]
],
'tokenOptimization' => true,
'tokenLimit' => 6,
'variationKey' => 'variationKey',
'autoCommit' => true,
'judges' => [
[
'threshold' => 1.4658129805029452,
'key' => 'key'
],
[
'threshold' => 1.4658129805029452,
'key' => 'key'
]
],
'acceptanceStatements' => [
[
'statement' => 'statement',
'threshold' => 6.027456183070403
],
[
'statement' => 'statement',
'threshold' => 6.027456183070403
]
]
]),
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://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey}"
payload := strings.NewReader("{\n \"latencyOptimization\": true,\n \"judgeModel\": \"judgeModel\",\n \"metricKey\": \"metricKey\",\n \"groundTruthResponses\": [\n \"groundTruthResponses\",\n \"groundTruthResponses\"\n ],\n \"modelChoices\": [\n \"modelChoices\",\n \"modelChoices\"\n ],\n \"label\": \"label\",\n \"userInputOptions\": [\n \"userInputOptions\",\n \"userInputOptions\"\n ],\n \"maxAttempts\": 0,\n \"variableChoices\": [\n {\n \"key\": \"\"\n },\n {\n \"key\": \"\"\n }\n ],\n \"tokenOptimization\": true,\n \"tokenLimit\": 6,\n \"variationKey\": \"variationKey\",\n \"autoCommit\": true,\n \"judges\": [\n {\n \"threshold\": 1.4658129805029452,\n \"key\": \"key\"\n },\n {\n \"threshold\": 1.4658129805029452,\n \"key\": \"key\"\n }\n ],\n \"acceptanceStatements\": [\n {\n \"statement\": \"statement\",\n \"threshold\": 6.027456183070403\n },\n {\n \"statement\": \"statement\",\n \"threshold\": 6.027456183070403\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"latencyOptimization\": true,\n \"judgeModel\": \"judgeModel\",\n \"metricKey\": \"metricKey\",\n \"groundTruthResponses\": [\n \"groundTruthResponses\",\n \"groundTruthResponses\"\n ],\n \"modelChoices\": [\n \"modelChoices\",\n \"modelChoices\"\n ],\n \"label\": \"label\",\n \"userInputOptions\": [\n \"userInputOptions\",\n \"userInputOptions\"\n ],\n \"maxAttempts\": 0,\n \"variableChoices\": [\n {\n \"key\": \"\"\n },\n {\n \"key\": \"\"\n }\n ],\n \"tokenOptimization\": true,\n \"tokenLimit\": 6,\n \"variationKey\": \"variationKey\",\n \"autoCommit\": true,\n \"judges\": [\n {\n \"threshold\": 1.4658129805029452,\n \"key\": \"key\"\n },\n {\n \"threshold\": 1.4658129805029452,\n \"key\": \"key\"\n }\n ],\n \"acceptanceStatements\": [\n {\n \"statement\": \"statement\",\n \"threshold\": 6.027456183070403\n },\n {\n \"statement\": \"statement\",\n \"threshold\": 6.027456183070403\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.launchdarkly.com/api/v2/projects/{projectKey}/agent-optimizations/{optimizationKey}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"latencyOptimization\": true,\n \"judgeModel\": \"judgeModel\",\n \"metricKey\": \"metricKey\",\n \"groundTruthResponses\": [\n \"groundTruthResponses\",\n \"groundTruthResponses\"\n ],\n \"modelChoices\": [\n \"modelChoices\",\n \"modelChoices\"\n ],\n \"label\": \"label\",\n \"userInputOptions\": [\n \"userInputOptions\",\n \"userInputOptions\"\n ],\n \"maxAttempts\": 0,\n \"variableChoices\": [\n {\n \"key\": \"\"\n },\n {\n \"key\": \"\"\n }\n ],\n \"tokenOptimization\": true,\n \"tokenLimit\": 6,\n \"variationKey\": \"variationKey\",\n \"autoCommit\": true,\n \"judges\": [\n {\n \"threshold\": 1.4658129805029452,\n \"key\": \"key\"\n },\n {\n \"threshold\": 1.4658129805029452,\n \"key\": \"key\"\n }\n ],\n \"acceptanceStatements\": [\n {\n \"statement\": \"statement\",\n \"threshold\": 6.027456183070403\n },\n {\n \"statement\": \"statement\",\n \"threshold\": 6.027456183070403\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"latencyOptimization": true,
"judgeModel": "judgeModel",
"metricKey": "metricKey",
"_links": {
"parent": {
"href": "href",
"type": "type"
},
"self": {
"href": "href",
"type": "type"
}
},
"groundTruthResponses": [
"groundTruthResponses",
"groundTruthResponses"
],
"modelChoices": [
"modelChoices",
"modelChoices"
],
"label": "label",
"version": 5,
"userInputOptions": [
"userInputOptions",
"userInputOptions"
],
"maxAttempts": 0,
"createdAt": 2,
"aiConfigKey": "aiConfigKey",
"_access": {
"allowed": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
],
"denied": [
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
},
{
"reason": {
"role_name": "role_name",
"notActions": [
null,
null
],
"notResources": [
"notResources",
"notResources"
],
"effect": "allow",
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
]
},
"action": "action"
}
]
},
"variableChoices": [
{
"key": ""
},
{
"key": ""
}
],
"tokenOptimization": true,
"tokenLimit": 5,
"id": "id",
"variationKey": "variationKey",
"autoCommit": true,
"judges": [
{
"threshold": 1.4658129805029452,
"key": "key"
},
{
"threshold": 1.4658129805029452,
"key": "key"
}
],
"key": "key",
"acceptanceStatements": [
{
"statement": "statement",
"threshold": 6.027456183070403
},
{
"statement": "statement",
"threshold": 6.027456183070403
}
]
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}{
"code": "code",
"message": "message"
}Authorizations
Body
application/json
Agent optimization fields to update
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Agent optimization updated
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Example:
{ "allowed": [ { "reason": { "role_name": "role_name", "notActions": [null, null], "notResources": ["notResources", "notResources"], "effect": "allow", "resources": ["proj/*:env/*;qa_*:/flag/*"], "actions": ["*"] }, "action": "action" }, { "reason": { "role_name": "role_name", "notActions": [null, null], "notResources": ["notResources", "notResources"], "effect": "allow", "resources": ["proj/*:env/*;qa_*:/flag/*"], "actions": ["*"] }, "action": "action" } ], "denied": [ { "reason": { "role_name": "role_name", "notActions": [null, null], "notResources": ["notResources", "notResources"], "effect": "allow", "resources": ["proj/*:env/*;qa_*:/flag/*"], "actions": ["*"] }, "action": "action" }, { "reason": { "role_name": "role_name", "notActions": [null, null], "notResources": ["notResources", "notResources"], "effect": "allow", "resources": ["proj/*:env/*;qa_*:/flag/*"], "actions": ["*"] }, "action": "action" } ] }
The location and content type of related resources
Show child attributes
Show child attributes
Example:
{ "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }