auths
Update an auth
Updates an existing auth.
PUT
/
v1
/
gateways
/
{gateway_id}
/
auths
/
{id}
Update an auth
curl --request PUT \
--url https://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"mtls": {
"allowed_common_names": [
"<string>"
],
"allowed_dns_names": [
"<string>"
],
"allowed_fingerprints": [
"<string>"
],
"ca_cert": "<string>"
},
"oauth2": {
"allowed_algorithms": [
"<string>"
],
"audiences": [
"<string>"
],
"client_id": "<string>",
"client_secret": "<string>",
"introspection_url": "<string>",
"issuer": "<string>",
"jwks_url": "<string>",
"required_scopes": [
"<string>"
],
"session_mode": true,
"subject_claim": "<string>",
"userinfo_url": "<string>"
},
"oidc": {
"allowed_algorithms": [
"<string>"
],
"audiences": [
"<string>"
],
"issuer": "<string>",
"jwks_url": "<string>",
"public_keys": [
"<string>"
],
"required_scopes": [
"<string>"
],
"subject_claim": "<string>"
}
},
"enabled": true,
"name": "<string>",
"type": "<string>"
}
'import requests
url = "https://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id}"
payload = {
"config": {
"mtls": {
"allowed_common_names": ["<string>"],
"allowed_dns_names": ["<string>"],
"allowed_fingerprints": ["<string>"],
"ca_cert": "<string>"
},
"oauth2": {
"allowed_algorithms": ["<string>"],
"audiences": ["<string>"],
"client_id": "<string>",
"client_secret": "<string>",
"introspection_url": "<string>",
"issuer": "<string>",
"jwks_url": "<string>",
"required_scopes": ["<string>"],
"session_mode": True,
"subject_claim": "<string>",
"userinfo_url": "<string>"
},
"oidc": {
"allowed_algorithms": ["<string>"],
"audiences": ["<string>"],
"issuer": "<string>",
"jwks_url": "<string>",
"public_keys": ["<string>"],
"required_scopes": ["<string>"],
"subject_claim": "<string>"
}
},
"enabled": True,
"name": "<string>",
"type": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
config: {
mtls: {
allowed_common_names: ['<string>'],
allowed_dns_names: ['<string>'],
allowed_fingerprints: ['<string>'],
ca_cert: '<string>'
},
oauth2: {
allowed_algorithms: ['<string>'],
audiences: ['<string>'],
client_id: '<string>',
client_secret: '<string>',
introspection_url: '<string>',
issuer: '<string>',
jwks_url: '<string>',
required_scopes: ['<string>'],
session_mode: true,
subject_claim: '<string>',
userinfo_url: '<string>'
},
oidc: {
allowed_algorithms: ['<string>'],
audiences: ['<string>'],
issuer: '<string>',
jwks_url: '<string>',
public_keys: ['<string>'],
required_scopes: ['<string>'],
subject_claim: '<string>'
}
},
enabled: true,
name: '<string>',
type: '<string>'
})
};
fetch('https://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id}', 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://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id}",
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([
'config' => [
'mtls' => [
'allowed_common_names' => [
'<string>'
],
'allowed_dns_names' => [
'<string>'
],
'allowed_fingerprints' => [
'<string>'
],
'ca_cert' => '<string>'
],
'oauth2' => [
'allowed_algorithms' => [
'<string>'
],
'audiences' => [
'<string>'
],
'client_id' => '<string>',
'client_secret' => '<string>',
'introspection_url' => '<string>',
'issuer' => '<string>',
'jwks_url' => '<string>',
'required_scopes' => [
'<string>'
],
'session_mode' => true,
'subject_claim' => '<string>',
'userinfo_url' => '<string>'
],
'oidc' => [
'allowed_algorithms' => [
'<string>'
],
'audiences' => [
'<string>'
],
'issuer' => '<string>',
'jwks_url' => '<string>',
'public_keys' => [
'<string>'
],
'required_scopes' => [
'<string>'
],
'subject_claim' => '<string>'
]
],
'enabled' => true,
'name' => '<string>',
'type' => '<string>'
]),
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://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id}"
payload := strings.NewReader("{\n \"config\": {\n \"mtls\": {\n \"allowed_common_names\": [\n \"<string>\"\n ],\n \"allowed_dns_names\": [\n \"<string>\"\n ],\n \"allowed_fingerprints\": [\n \"<string>\"\n ],\n \"ca_cert\": \"<string>\"\n },\n \"oauth2\": {\n \"allowed_algorithms\": [\n \"<string>\"\n ],\n \"audiences\": [\n \"<string>\"\n ],\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"introspection_url\": \"<string>\",\n \"issuer\": \"<string>\",\n \"jwks_url\": \"<string>\",\n \"required_scopes\": [\n \"<string>\"\n ],\n \"session_mode\": true,\n \"subject_claim\": \"<string>\",\n \"userinfo_url\": \"<string>\"\n },\n \"oidc\": {\n \"allowed_algorithms\": [\n \"<string>\"\n ],\n \"audiences\": [\n \"<string>\"\n ],\n \"issuer\": \"<string>\",\n \"jwks_url\": \"<string>\",\n \"public_keys\": [\n \"<string>\"\n ],\n \"required_scopes\": [\n \"<string>\"\n ],\n \"subject_claim\": \"<string>\"\n }\n },\n \"enabled\": true,\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"mtls\": {\n \"allowed_common_names\": [\n \"<string>\"\n ],\n \"allowed_dns_names\": [\n \"<string>\"\n ],\n \"allowed_fingerprints\": [\n \"<string>\"\n ],\n \"ca_cert\": \"<string>\"\n },\n \"oauth2\": {\n \"allowed_algorithms\": [\n \"<string>\"\n ],\n \"audiences\": [\n \"<string>\"\n ],\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"introspection_url\": \"<string>\",\n \"issuer\": \"<string>\",\n \"jwks_url\": \"<string>\",\n \"required_scopes\": [\n \"<string>\"\n ],\n \"session_mode\": true,\n \"subject_claim\": \"<string>\",\n \"userinfo_url\": \"<string>\"\n },\n \"oidc\": {\n \"allowed_algorithms\": [\n \"<string>\"\n ],\n \"audiences\": [\n \"<string>\"\n ],\n \"issuer\": \"<string>\",\n \"jwks_url\": \"<string>\",\n \"public_keys\": [\n \"<string>\"\n ],\n \"required_scopes\": [\n \"<string>\"\n ],\n \"subject_claim\": \"<string>\"\n }\n },\n \"enabled\": true,\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"config\": {\n \"mtls\": {\n \"allowed_common_names\": [\n \"<string>\"\n ],\n \"allowed_dns_names\": [\n \"<string>\"\n ],\n \"allowed_fingerprints\": [\n \"<string>\"\n ],\n \"ca_cert\": \"<string>\"\n },\n \"oauth2\": {\n \"allowed_algorithms\": [\n \"<string>\"\n ],\n \"audiences\": [\n \"<string>\"\n ],\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"introspection_url\": \"<string>\",\n \"issuer\": \"<string>\",\n \"jwks_url\": \"<string>\",\n \"required_scopes\": [\n \"<string>\"\n ],\n \"session_mode\": true,\n \"subject_claim\": \"<string>\",\n \"userinfo_url\": \"<string>\"\n },\n \"oidc\": {\n \"allowed_algorithms\": [\n \"<string>\"\n ],\n \"audiences\": [\n \"<string>\"\n ],\n \"issuer\": \"<string>\",\n \"jwks_url\": \"<string>\",\n \"public_keys\": [\n \"<string>\"\n ],\n \"required_scopes\": [\n \"<string>\"\n ],\n \"subject_claim\": \"<string>\"\n }\n },\n \"enabled\": true,\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"api_key": "<string>",
"config": {
"mtls": {
"allowed_common_names": [
"<string>"
],
"allowed_dns_names": [
"<string>"
],
"allowed_fingerprints": [
"<string>"
],
"ca_cert": "<string>"
},
"oauth2": {
"allowed_algorithms": [
"<string>"
],
"audiences": [
"<string>"
],
"client_id": "<string>",
"client_secret": "<string>",
"introspection_url": "<string>",
"issuer": "<string>",
"jwks_url": "<string>",
"required_scopes": [
"<string>"
],
"session_mode": true,
"subject_claim": "<string>",
"userinfo_url": "<string>"
},
"oidc": {
"allowed_algorithms": [
"<string>"
],
"audiences": [
"<string>"
],
"issuer": "<string>",
"jwks_url": "<string>",
"public_keys": [
"<string>"
],
"required_scopes": [
"<string>"
],
"subject_claim": "<string>"
}
},
"created_at": "<string>",
"enabled": true,
"gateway_id": "<string>",
"id": "<string>",
"name": "<string>",
"type": "<string>",
"updated_at": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
Body
application/json
Auth fields to update
⌘I
Update an auth
curl --request PUT \
--url https://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"mtls": {
"allowed_common_names": [
"<string>"
],
"allowed_dns_names": [
"<string>"
],
"allowed_fingerprints": [
"<string>"
],
"ca_cert": "<string>"
},
"oauth2": {
"allowed_algorithms": [
"<string>"
],
"audiences": [
"<string>"
],
"client_id": "<string>",
"client_secret": "<string>",
"introspection_url": "<string>",
"issuer": "<string>",
"jwks_url": "<string>",
"required_scopes": [
"<string>"
],
"session_mode": true,
"subject_claim": "<string>",
"userinfo_url": "<string>"
},
"oidc": {
"allowed_algorithms": [
"<string>"
],
"audiences": [
"<string>"
],
"issuer": "<string>",
"jwks_url": "<string>",
"public_keys": [
"<string>"
],
"required_scopes": [
"<string>"
],
"subject_claim": "<string>"
}
},
"enabled": true,
"name": "<string>",
"type": "<string>"
}
'import requests
url = "https://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id}"
payload = {
"config": {
"mtls": {
"allowed_common_names": ["<string>"],
"allowed_dns_names": ["<string>"],
"allowed_fingerprints": ["<string>"],
"ca_cert": "<string>"
},
"oauth2": {
"allowed_algorithms": ["<string>"],
"audiences": ["<string>"],
"client_id": "<string>",
"client_secret": "<string>",
"introspection_url": "<string>",
"issuer": "<string>",
"jwks_url": "<string>",
"required_scopes": ["<string>"],
"session_mode": True,
"subject_claim": "<string>",
"userinfo_url": "<string>"
},
"oidc": {
"allowed_algorithms": ["<string>"],
"audiences": ["<string>"],
"issuer": "<string>",
"jwks_url": "<string>",
"public_keys": ["<string>"],
"required_scopes": ["<string>"],
"subject_claim": "<string>"
}
},
"enabled": True,
"name": "<string>",
"type": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
config: {
mtls: {
allowed_common_names: ['<string>'],
allowed_dns_names: ['<string>'],
allowed_fingerprints: ['<string>'],
ca_cert: '<string>'
},
oauth2: {
allowed_algorithms: ['<string>'],
audiences: ['<string>'],
client_id: '<string>',
client_secret: '<string>',
introspection_url: '<string>',
issuer: '<string>',
jwks_url: '<string>',
required_scopes: ['<string>'],
session_mode: true,
subject_claim: '<string>',
userinfo_url: '<string>'
},
oidc: {
allowed_algorithms: ['<string>'],
audiences: ['<string>'],
issuer: '<string>',
jwks_url: '<string>',
public_keys: ['<string>'],
required_scopes: ['<string>'],
subject_claim: '<string>'
}
},
enabled: true,
name: '<string>',
type: '<string>'
})
};
fetch('https://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id}', 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://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id}",
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([
'config' => [
'mtls' => [
'allowed_common_names' => [
'<string>'
],
'allowed_dns_names' => [
'<string>'
],
'allowed_fingerprints' => [
'<string>'
],
'ca_cert' => '<string>'
],
'oauth2' => [
'allowed_algorithms' => [
'<string>'
],
'audiences' => [
'<string>'
],
'client_id' => '<string>',
'client_secret' => '<string>',
'introspection_url' => '<string>',
'issuer' => '<string>',
'jwks_url' => '<string>',
'required_scopes' => [
'<string>'
],
'session_mode' => true,
'subject_claim' => '<string>',
'userinfo_url' => '<string>'
],
'oidc' => [
'allowed_algorithms' => [
'<string>'
],
'audiences' => [
'<string>'
],
'issuer' => '<string>',
'jwks_url' => '<string>',
'public_keys' => [
'<string>'
],
'required_scopes' => [
'<string>'
],
'subject_claim' => '<string>'
]
],
'enabled' => true,
'name' => '<string>',
'type' => '<string>'
]),
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://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id}"
payload := strings.NewReader("{\n \"config\": {\n \"mtls\": {\n \"allowed_common_names\": [\n \"<string>\"\n ],\n \"allowed_dns_names\": [\n \"<string>\"\n ],\n \"allowed_fingerprints\": [\n \"<string>\"\n ],\n \"ca_cert\": \"<string>\"\n },\n \"oauth2\": {\n \"allowed_algorithms\": [\n \"<string>\"\n ],\n \"audiences\": [\n \"<string>\"\n ],\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"introspection_url\": \"<string>\",\n \"issuer\": \"<string>\",\n \"jwks_url\": \"<string>\",\n \"required_scopes\": [\n \"<string>\"\n ],\n \"session_mode\": true,\n \"subject_claim\": \"<string>\",\n \"userinfo_url\": \"<string>\"\n },\n \"oidc\": {\n \"allowed_algorithms\": [\n \"<string>\"\n ],\n \"audiences\": [\n \"<string>\"\n ],\n \"issuer\": \"<string>\",\n \"jwks_url\": \"<string>\",\n \"public_keys\": [\n \"<string>\"\n ],\n \"required_scopes\": [\n \"<string>\"\n ],\n \"subject_claim\": \"<string>\"\n }\n },\n \"enabled\": true,\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"mtls\": {\n \"allowed_common_names\": [\n \"<string>\"\n ],\n \"allowed_dns_names\": [\n \"<string>\"\n ],\n \"allowed_fingerprints\": [\n \"<string>\"\n ],\n \"ca_cert\": \"<string>\"\n },\n \"oauth2\": {\n \"allowed_algorithms\": [\n \"<string>\"\n ],\n \"audiences\": [\n \"<string>\"\n ],\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"introspection_url\": \"<string>\",\n \"issuer\": \"<string>\",\n \"jwks_url\": \"<string>\",\n \"required_scopes\": [\n \"<string>\"\n ],\n \"session_mode\": true,\n \"subject_claim\": \"<string>\",\n \"userinfo_url\": \"<string>\"\n },\n \"oidc\": {\n \"allowed_algorithms\": [\n \"<string>\"\n ],\n \"audiences\": [\n \"<string>\"\n ],\n \"issuer\": \"<string>\",\n \"jwks_url\": \"<string>\",\n \"public_keys\": [\n \"<string>\"\n ],\n \"required_scopes\": [\n \"<string>\"\n ],\n \"subject_claim\": \"<string>\"\n }\n },\n \"enabled\": true,\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://agentgateway-admin.dev.neuraltrust.ai/v1/gateways/{gateway_id}/auths/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"config\": {\n \"mtls\": {\n \"allowed_common_names\": [\n \"<string>\"\n ],\n \"allowed_dns_names\": [\n \"<string>\"\n ],\n \"allowed_fingerprints\": [\n \"<string>\"\n ],\n \"ca_cert\": \"<string>\"\n },\n \"oauth2\": {\n \"allowed_algorithms\": [\n \"<string>\"\n ],\n \"audiences\": [\n \"<string>\"\n ],\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"introspection_url\": \"<string>\",\n \"issuer\": \"<string>\",\n \"jwks_url\": \"<string>\",\n \"required_scopes\": [\n \"<string>\"\n ],\n \"session_mode\": true,\n \"subject_claim\": \"<string>\",\n \"userinfo_url\": \"<string>\"\n },\n \"oidc\": {\n \"allowed_algorithms\": [\n \"<string>\"\n ],\n \"audiences\": [\n \"<string>\"\n ],\n \"issuer\": \"<string>\",\n \"jwks_url\": \"<string>\",\n \"public_keys\": [\n \"<string>\"\n ],\n \"required_scopes\": [\n \"<string>\"\n ],\n \"subject_claim\": \"<string>\"\n }\n },\n \"enabled\": true,\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"api_key": "<string>",
"config": {
"mtls": {
"allowed_common_names": [
"<string>"
],
"allowed_dns_names": [
"<string>"
],
"allowed_fingerprints": [
"<string>"
],
"ca_cert": "<string>"
},
"oauth2": {
"allowed_algorithms": [
"<string>"
],
"audiences": [
"<string>"
],
"client_id": "<string>",
"client_secret": "<string>",
"introspection_url": "<string>",
"issuer": "<string>",
"jwks_url": "<string>",
"required_scopes": [
"<string>"
],
"session_mode": true,
"subject_claim": "<string>",
"userinfo_url": "<string>"
},
"oidc": {
"allowed_algorithms": [
"<string>"
],
"audiences": [
"<string>"
],
"issuer": "<string>",
"jwks_url": "<string>",
"public_keys": [
"<string>"
],
"required_scopes": [
"<string>"
],
"subject_claim": "<string>"
}
},
"created_at": "<string>",
"enabled": true,
"gateway_id": "<string>",
"id": "<string>",
"name": "<string>",
"type": "<string>",
"updated_at": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}