curl --request PATCH \
--url https://dev.api.galtea.ai/organizations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Example Organization",
"warningAt": 100,
"enforceMfa": true,
"samlEntrypointUrl": "<string>",
"samlEntityId": "<string>",
"samlIssuerId": "<string>",
"samlPublicCertificate": "<string>",
"samlSignedResponse": true,
"samlSignedAssertions": true,
"samlForcePasswordAuth": true,
"otelProductKey": [
"service.namespace",
"service.name"
],
"otelVersionAttributes": [
"service.version",
"app.agent.model"
],
"otelEndUserAttributes": [
"user.id",
"app.customer.id"
],
"otelInputSourceRule": {
"spanName": "ExecuteActivity:add_user_message",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "user"
}
},
"otelOutputSourceRule": {
"spanName": "ExecuteActivity:save_reply",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "assistant"
}
}
}
'import requests
url = "https://dev.api.galtea.ai/organizations/{id}"
payload = {
"name": "Example Organization",
"warningAt": 100,
"enforceMfa": True,
"samlEntrypointUrl": "<string>",
"samlEntityId": "<string>",
"samlIssuerId": "<string>",
"samlPublicCertificate": "<string>",
"samlSignedResponse": True,
"samlSignedAssertions": True,
"samlForcePasswordAuth": True,
"otelProductKey": ["service.namespace", "service.name"],
"otelVersionAttributes": ["service.version", "app.agent.model"],
"otelEndUserAttributes": ["user.id", "app.customer.id"],
"otelInputSourceRule": {
"spanName": "ExecuteActivity:add_user_message",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "user"
}
},
"otelOutputSourceRule": {
"spanName": "ExecuteActivity:save_reply",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "assistant"
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Example Organization',
warningAt: 100,
enforceMfa: true,
samlEntrypointUrl: '<string>',
samlEntityId: '<string>',
samlIssuerId: '<string>',
samlPublicCertificate: '<string>',
samlSignedResponse: true,
samlSignedAssertions: true,
samlForcePasswordAuth: true,
otelProductKey: ['service.namespace', 'service.name'],
otelVersionAttributes: ['service.version', 'app.agent.model'],
otelEndUserAttributes: ['user.id', 'app.customer.id'],
otelInputSourceRule: {
spanName: 'ExecuteActivity:add_user_message',
attribute: 'app.arguments',
path: '$[0].message.content',
predicate: {path: '$[0].message.role', equals: 'user'}
},
otelOutputSourceRule: {
spanName: 'ExecuteActivity:save_reply',
attribute: 'app.arguments',
path: '$[0].message.content',
predicate: {path: '$[0].message.role', equals: 'assistant'}
}
})
};
fetch('https://dev.api.galtea.ai/organizations/{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://dev.api.galtea.ai/organizations/{id}",
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([
'name' => 'Example Organization',
'warningAt' => 100,
'enforceMfa' => true,
'samlEntrypointUrl' => '<string>',
'samlEntityId' => '<string>',
'samlIssuerId' => '<string>',
'samlPublicCertificate' => '<string>',
'samlSignedResponse' => true,
'samlSignedAssertions' => true,
'samlForcePasswordAuth' => true,
'otelProductKey' => [
'service.namespace',
'service.name'
],
'otelVersionAttributes' => [
'service.version',
'app.agent.model'
],
'otelEndUserAttributes' => [
'user.id',
'app.customer.id'
],
'otelInputSourceRule' => [
'spanName' => 'ExecuteActivity:add_user_message',
'attribute' => 'app.arguments',
'path' => '$[0].message.content',
'predicate' => [
'path' => '$[0].message.role',
'equals' => 'user'
]
],
'otelOutputSourceRule' => [
'spanName' => 'ExecuteActivity:save_reply',
'attribute' => 'app.arguments',
'path' => '$[0].message.content',
'predicate' => [
'path' => '$[0].message.role',
'equals' => 'assistant'
]
]
]),
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://dev.api.galtea.ai/organizations/{id}"
payload := strings.NewReader("{\n \"name\": \"Example Organization\",\n \"warningAt\": 100,\n \"enforceMfa\": true,\n \"samlEntrypointUrl\": \"<string>\",\n \"samlEntityId\": \"<string>\",\n \"samlIssuerId\": \"<string>\",\n \"samlPublicCertificate\": \"<string>\",\n \"samlSignedResponse\": true,\n \"samlSignedAssertions\": true,\n \"samlForcePasswordAuth\": true,\n \"otelProductKey\": [\n \"service.namespace\",\n \"service.name\"\n ],\n \"otelVersionAttributes\": [\n \"service.version\",\n \"app.agent.model\"\n ],\n \"otelEndUserAttributes\": [\n \"user.id\",\n \"app.customer.id\"\n ],\n \"otelInputSourceRule\": {\n \"spanName\": \"ExecuteActivity:add_user_message\",\n \"attribute\": \"app.arguments\",\n \"path\": \"$[0].message.content\",\n \"predicate\": {\n \"path\": \"$[0].message.role\",\n \"equals\": \"user\"\n }\n },\n \"otelOutputSourceRule\": {\n \"spanName\": \"ExecuteActivity:save_reply\",\n \"attribute\": \"app.arguments\",\n \"path\": \"$[0].message.content\",\n \"predicate\": {\n \"path\": \"$[0].message.role\",\n \"equals\": \"assistant\"\n }\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://dev.api.galtea.ai/organizations/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Example Organization\",\n \"warningAt\": 100,\n \"enforceMfa\": true,\n \"samlEntrypointUrl\": \"<string>\",\n \"samlEntityId\": \"<string>\",\n \"samlIssuerId\": \"<string>\",\n \"samlPublicCertificate\": \"<string>\",\n \"samlSignedResponse\": true,\n \"samlSignedAssertions\": true,\n \"samlForcePasswordAuth\": true,\n \"otelProductKey\": [\n \"service.namespace\",\n \"service.name\"\n ],\n \"otelVersionAttributes\": [\n \"service.version\",\n \"app.agent.model\"\n ],\n \"otelEndUserAttributes\": [\n \"user.id\",\n \"app.customer.id\"\n ],\n \"otelInputSourceRule\": {\n \"spanName\": \"ExecuteActivity:add_user_message\",\n \"attribute\": \"app.arguments\",\n \"path\": \"$[0].message.content\",\n \"predicate\": {\n \"path\": \"$[0].message.role\",\n \"equals\": \"user\"\n }\n },\n \"otelOutputSourceRule\": {\n \"spanName\": \"ExecuteActivity:save_reply\",\n \"attribute\": \"app.arguments\",\n \"path\": \"$[0].message.content\",\n \"predicate\": {\n \"path\": \"$[0].message.role\",\n \"equals\": \"assistant\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.galtea.ai/organizations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Example Organization\",\n \"warningAt\": 100,\n \"enforceMfa\": true,\n \"samlEntrypointUrl\": \"<string>\",\n \"samlEntityId\": \"<string>\",\n \"samlIssuerId\": \"<string>\",\n \"samlPublicCertificate\": \"<string>\",\n \"samlSignedResponse\": true,\n \"samlSignedAssertions\": true,\n \"samlForcePasswordAuth\": true,\n \"otelProductKey\": [\n \"service.namespace\",\n \"service.name\"\n ],\n \"otelVersionAttributes\": [\n \"service.version\",\n \"app.agent.model\"\n ],\n \"otelEndUserAttributes\": [\n \"user.id\",\n \"app.customer.id\"\n ],\n \"otelInputSourceRule\": {\n \"spanName\": \"ExecuteActivity:add_user_message\",\n \"attribute\": \"app.arguments\",\n \"path\": \"$[0].message.content\",\n \"predicate\": {\n \"path\": \"$[0].message.role\",\n \"equals\": \"user\"\n }\n },\n \"otelOutputSourceRule\": {\n \"spanName\": \"ExecuteActivity:save_reply\",\n \"attribute\": \"app.arguments\",\n \"path\": \"$[0].message.content\",\n \"predicate\": {\n \"path\": \"$[0].message.role\",\n \"equals\": \"assistant\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "org_123",
"name": "Example Organization",
"remainingSubscriptionCredits": 1000,
"extraCredits": 500,
"lastWarningAt": "2023-11-07T05:31:56Z",
"warningAt": 100,
"stripeCustomerId": "cus_123",
"samlEntrypointUrl": "<string>",
"samlEntityId": "<string>",
"samlIssuerId": "<string>",
"samlPublicCertificate": "<string>",
"samlSignedResponse": true,
"samlSignedAssertions": true,
"samlForcePasswordAuth": true,
"samlTeamSlug": "<string>",
"enforceMfa": false,
"createdAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"otelProductKey": [
"service.namespace",
"service.name"
],
"otelVersionAttributes": [
"service.version",
"app.agent.model"
],
"otelEndUserAttributes": [
"user.id",
"app.customer.id"
],
"otelInputSourceRule": {
"spanName": "ExecuteActivity:add_user_message",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "user"
}
},
"otelOutputSourceRule": {
"spanName": "ExecuteActivity:save_reply",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "assistant"
}
},
"dataRegion": "GLOBAL"
}{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}Update organization
Update an existing organization. Send only the fields you change: an absent field keeps its value, and null clears a field that may be null. An owner may change warningAt, enforceMfa, the SAML settings and the OpenTelemetry settings; only a platform admin may rename the organization or change dataRegion, and dataRegion applies only to an organization with an ENTERPRISE subscription on a deployment that turns the feature on. Changing the set of attributes of otelProductKey is refused with 409 while a live product that uses the key holds key values; reordering the same attributes is allowed. See Platform Overview.
curl --request PATCH \
--url https://dev.api.galtea.ai/organizations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Example Organization",
"warningAt": 100,
"enforceMfa": true,
"samlEntrypointUrl": "<string>",
"samlEntityId": "<string>",
"samlIssuerId": "<string>",
"samlPublicCertificate": "<string>",
"samlSignedResponse": true,
"samlSignedAssertions": true,
"samlForcePasswordAuth": true,
"otelProductKey": [
"service.namespace",
"service.name"
],
"otelVersionAttributes": [
"service.version",
"app.agent.model"
],
"otelEndUserAttributes": [
"user.id",
"app.customer.id"
],
"otelInputSourceRule": {
"spanName": "ExecuteActivity:add_user_message",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "user"
}
},
"otelOutputSourceRule": {
"spanName": "ExecuteActivity:save_reply",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "assistant"
}
}
}
'import requests
url = "https://dev.api.galtea.ai/organizations/{id}"
payload = {
"name": "Example Organization",
"warningAt": 100,
"enforceMfa": True,
"samlEntrypointUrl": "<string>",
"samlEntityId": "<string>",
"samlIssuerId": "<string>",
"samlPublicCertificate": "<string>",
"samlSignedResponse": True,
"samlSignedAssertions": True,
"samlForcePasswordAuth": True,
"otelProductKey": ["service.namespace", "service.name"],
"otelVersionAttributes": ["service.version", "app.agent.model"],
"otelEndUserAttributes": ["user.id", "app.customer.id"],
"otelInputSourceRule": {
"spanName": "ExecuteActivity:add_user_message",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "user"
}
},
"otelOutputSourceRule": {
"spanName": "ExecuteActivity:save_reply",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "assistant"
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Example Organization',
warningAt: 100,
enforceMfa: true,
samlEntrypointUrl: '<string>',
samlEntityId: '<string>',
samlIssuerId: '<string>',
samlPublicCertificate: '<string>',
samlSignedResponse: true,
samlSignedAssertions: true,
samlForcePasswordAuth: true,
otelProductKey: ['service.namespace', 'service.name'],
otelVersionAttributes: ['service.version', 'app.agent.model'],
otelEndUserAttributes: ['user.id', 'app.customer.id'],
otelInputSourceRule: {
spanName: 'ExecuteActivity:add_user_message',
attribute: 'app.arguments',
path: '$[0].message.content',
predicate: {path: '$[0].message.role', equals: 'user'}
},
otelOutputSourceRule: {
spanName: 'ExecuteActivity:save_reply',
attribute: 'app.arguments',
path: '$[0].message.content',
predicate: {path: '$[0].message.role', equals: 'assistant'}
}
})
};
fetch('https://dev.api.galtea.ai/organizations/{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://dev.api.galtea.ai/organizations/{id}",
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([
'name' => 'Example Organization',
'warningAt' => 100,
'enforceMfa' => true,
'samlEntrypointUrl' => '<string>',
'samlEntityId' => '<string>',
'samlIssuerId' => '<string>',
'samlPublicCertificate' => '<string>',
'samlSignedResponse' => true,
'samlSignedAssertions' => true,
'samlForcePasswordAuth' => true,
'otelProductKey' => [
'service.namespace',
'service.name'
],
'otelVersionAttributes' => [
'service.version',
'app.agent.model'
],
'otelEndUserAttributes' => [
'user.id',
'app.customer.id'
],
'otelInputSourceRule' => [
'spanName' => 'ExecuteActivity:add_user_message',
'attribute' => 'app.arguments',
'path' => '$[0].message.content',
'predicate' => [
'path' => '$[0].message.role',
'equals' => 'user'
]
],
'otelOutputSourceRule' => [
'spanName' => 'ExecuteActivity:save_reply',
'attribute' => 'app.arguments',
'path' => '$[0].message.content',
'predicate' => [
'path' => '$[0].message.role',
'equals' => 'assistant'
]
]
]),
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://dev.api.galtea.ai/organizations/{id}"
payload := strings.NewReader("{\n \"name\": \"Example Organization\",\n \"warningAt\": 100,\n \"enforceMfa\": true,\n \"samlEntrypointUrl\": \"<string>\",\n \"samlEntityId\": \"<string>\",\n \"samlIssuerId\": \"<string>\",\n \"samlPublicCertificate\": \"<string>\",\n \"samlSignedResponse\": true,\n \"samlSignedAssertions\": true,\n \"samlForcePasswordAuth\": true,\n \"otelProductKey\": [\n \"service.namespace\",\n \"service.name\"\n ],\n \"otelVersionAttributes\": [\n \"service.version\",\n \"app.agent.model\"\n ],\n \"otelEndUserAttributes\": [\n \"user.id\",\n \"app.customer.id\"\n ],\n \"otelInputSourceRule\": {\n \"spanName\": \"ExecuteActivity:add_user_message\",\n \"attribute\": \"app.arguments\",\n \"path\": \"$[0].message.content\",\n \"predicate\": {\n \"path\": \"$[0].message.role\",\n \"equals\": \"user\"\n }\n },\n \"otelOutputSourceRule\": {\n \"spanName\": \"ExecuteActivity:save_reply\",\n \"attribute\": \"app.arguments\",\n \"path\": \"$[0].message.content\",\n \"predicate\": {\n \"path\": \"$[0].message.role\",\n \"equals\": \"assistant\"\n }\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://dev.api.galtea.ai/organizations/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Example Organization\",\n \"warningAt\": 100,\n \"enforceMfa\": true,\n \"samlEntrypointUrl\": \"<string>\",\n \"samlEntityId\": \"<string>\",\n \"samlIssuerId\": \"<string>\",\n \"samlPublicCertificate\": \"<string>\",\n \"samlSignedResponse\": true,\n \"samlSignedAssertions\": true,\n \"samlForcePasswordAuth\": true,\n \"otelProductKey\": [\n \"service.namespace\",\n \"service.name\"\n ],\n \"otelVersionAttributes\": [\n \"service.version\",\n \"app.agent.model\"\n ],\n \"otelEndUserAttributes\": [\n \"user.id\",\n \"app.customer.id\"\n ],\n \"otelInputSourceRule\": {\n \"spanName\": \"ExecuteActivity:add_user_message\",\n \"attribute\": \"app.arguments\",\n \"path\": \"$[0].message.content\",\n \"predicate\": {\n \"path\": \"$[0].message.role\",\n \"equals\": \"user\"\n }\n },\n \"otelOutputSourceRule\": {\n \"spanName\": \"ExecuteActivity:save_reply\",\n \"attribute\": \"app.arguments\",\n \"path\": \"$[0].message.content\",\n \"predicate\": {\n \"path\": \"$[0].message.role\",\n \"equals\": \"assistant\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.galtea.ai/organizations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Example Organization\",\n \"warningAt\": 100,\n \"enforceMfa\": true,\n \"samlEntrypointUrl\": \"<string>\",\n \"samlEntityId\": \"<string>\",\n \"samlIssuerId\": \"<string>\",\n \"samlPublicCertificate\": \"<string>\",\n \"samlSignedResponse\": true,\n \"samlSignedAssertions\": true,\n \"samlForcePasswordAuth\": true,\n \"otelProductKey\": [\n \"service.namespace\",\n \"service.name\"\n ],\n \"otelVersionAttributes\": [\n \"service.version\",\n \"app.agent.model\"\n ],\n \"otelEndUserAttributes\": [\n \"user.id\",\n \"app.customer.id\"\n ],\n \"otelInputSourceRule\": {\n \"spanName\": \"ExecuteActivity:add_user_message\",\n \"attribute\": \"app.arguments\",\n \"path\": \"$[0].message.content\",\n \"predicate\": {\n \"path\": \"$[0].message.role\",\n \"equals\": \"user\"\n }\n },\n \"otelOutputSourceRule\": {\n \"spanName\": \"ExecuteActivity:save_reply\",\n \"attribute\": \"app.arguments\",\n \"path\": \"$[0].message.content\",\n \"predicate\": {\n \"path\": \"$[0].message.role\",\n \"equals\": \"assistant\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "org_123",
"name": "Example Organization",
"remainingSubscriptionCredits": 1000,
"extraCredits": 500,
"lastWarningAt": "2023-11-07T05:31:56Z",
"warningAt": 100,
"stripeCustomerId": "cus_123",
"samlEntrypointUrl": "<string>",
"samlEntityId": "<string>",
"samlIssuerId": "<string>",
"samlPublicCertificate": "<string>",
"samlSignedResponse": true,
"samlSignedAssertions": true,
"samlForcePasswordAuth": true,
"samlTeamSlug": "<string>",
"enforceMfa": false,
"createdAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"otelProductKey": [
"service.namespace",
"service.name"
],
"otelVersionAttributes": [
"service.version",
"app.agent.model"
],
"otelEndUserAttributes": [
"user.id",
"app.customer.id"
],
"otelInputSourceRule": {
"spanName": "ExecuteActivity:add_user_message",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "user"
}
},
"otelOutputSourceRule": {
"spanName": "ExecuteActivity:save_reply",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "assistant"
}
},
"dataRegion": "GLOBAL"
}{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}Authorizations
API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....
Headers
Send return=minimal to get no body back from a write and skip reading the resource: a create answers 201 with only Location, and an update answers 204.
"return=minimal"
Path Parameters
Organization ID
"org_123"
Body
The organization name. Only a platform admin may change it.
"Example Organization"
The credit balance below which members get a low-credit warning, from 0 up to the monthly credits of the plan. Null turns the warning off.
100
When true, every member of the organization must complete an MFA challenge to sign in.
An in-house SAML sign-in setting. Only an organization with an ENTERPRISE subscription may change it.
An in-house SAML sign-in setting. Only an organization with an ENTERPRISE subscription may change it.
An in-house SAML sign-in setting. Only an organization with an ENTERPRISE subscription may change it.
An in-house SAML sign-in setting. Only an organization with an ENTERPRISE subscription may change it.
An in-house SAML sign-in setting. Only an organization with an ENTERPRISE subscription may change it.
An in-house SAML sign-in setting. Only an organization with an ENTERPRISE subscription may change it.
An in-house SAML sign-in setting. Only an organization with an ENTERPRISE subscription may change it.
The resource attributes that identify a product of this organization, 1 to 10 names. Each product gives its own value for each of them. A name cannot start with "galtea." or be "customer.id". Changing the set of names is refused while a product that uses this key holds values. It cannot be null.
["service.namespace", "service.name"]
The resource attributes whose values make up a version, up to 32 names. A trace that carries no galtea.version.id and no galtea.version.fact.* gets the version built from the listed attributes it carries. Each fact keeps the attribute name as its key. A name cannot start with "galtea." or be "customer.id". An empty list turns this off. A product can replace the list with its own.
["service.version", "app.agent.model"]
Custom span attributes that name the end user of a session and of each of its traces, up to 8 names. Galtea reads them in order, before the end-user attributes it reads for the supported frameworks (user.id, enduser.id, the OpenLLMetry and Langfuse keys). Galtea tries the names in list order: for each name, the earliest span that carries a usable value for that name (a text of 1 to 255 characters) sets the end user. An empty list adds no custom attribute. The framework attributes cannot be turned off. A name cannot start with "galtea." or be "customer.id". A product can replace the list with its own.
["user.id", "app.customer.id"]
Recovers a turn's input from a non-LLM span for every product with no rule of its own. A version rule wins over a product rule, and a product rule over this one. Null clears it.
Show child attributes
Show child attributes
{
"spanName": "ExecuteActivity:add_user_message",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "user"
}
}
Recovers a turn's output from a non-LLM span for every product with no rule of its own. A version rule wins over a product rule, and a product rule over this one. Null clears it.
Show child attributes
Show child attributes
{
"spanName": "ExecuteActivity:save_reply",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "assistant"
}
}
Response
Organization updated successfully. The body is the resource as its GET answers it.
"org_123"
"Example Organization"
1000
500
The credit balance below which members get a low-credit warning, from 0 up to the monthly credits of the plan. Null turns the warning off.
100
"cus_123"
When true, every member of the organization must complete an MFA challenge to sign in. Settable by Owners (via update) and Admins (via create or update).
The resource attributes that identify a product of this organization, 1 to 10 names. Each product gives its own value for each of them. A name cannot start with "galtea." or be "customer.id". Changing the set of names is refused while a product that uses this key holds values. It cannot be null.
["service.namespace", "service.name"]
The resource attributes whose values make up a version, up to 32 names. A trace that carries no galtea.version.id and no galtea.version.fact.* gets the version built from the listed attributes it carries. Each fact keeps the attribute name as its key. A name cannot start with "galtea." or be "customer.id". An empty list turns this off. A product can replace the list with its own.
["service.version", "app.agent.model"]
Custom span attributes that name the end user of a session and of each of its traces, up to 8 names. Galtea reads them in order, before the end-user attributes it reads for the supported frameworks (user.id, enduser.id, the OpenLLMetry and Langfuse keys). Galtea tries the names in list order: for each name, the earliest span that carries a usable value for that name (a text of 1 to 255 characters) sets the end user. An empty list adds no custom attribute. The framework attributes cannot be turned off. A name cannot start with "galtea." or be "customer.id". A product can replace the list with its own.
["user.id", "app.customer.id"]
Recovers a turn's input from a non-LLM span for every product with no rule of its own. A version rule wins over a product rule, and a product rule over this one. Null clears it.
Show child attributes
Show child attributes
Recovers a turn's output from a non-LLM span for every product with no rule of its own. A version rule wins over a product rule, and a product rule over this one. Null clears it.
Show child attributes
Show child attributes
The region where Galtea processes the data of this organization: GLOBAL (the default) or EU (EU only). Only a platform admin may change it, and only for an organization with an ENTERPRISE subscription. Read-only for owners and members.
GLOBAL, EU "GLOBAL"