Python
import requests
url = "https://app.langwatch.ai/api/organization"
payload = {
"name": "<string>",
"supportContact": "<string>",
"presenceEnabled": True,
"traceSharingEnabled": True,
"s3Endpoint": "<string>",
"s3AccessKeyId": "<string>",
"s3SecretAccessKey": "<string>",
"s3Bucket": "<string>"
}
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: '<string>',
supportContact: '<string>',
presenceEnabled: true,
traceSharingEnabled: true,
s3Endpoint: '<string>',
s3AccessKeyId: '<string>',
s3SecretAccessKey: '<string>',
s3Bucket: '<string>'
})
};
fetch('https://app.langwatch.ai/api/organization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://app.langwatch.ai/api/organization \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"supportContact": "<string>",
"presenceEnabled": true,
"traceSharingEnabled": true,
"s3Endpoint": "<string>",
"s3AccessKeyId": "<string>",
"s3SecretAccessKey": "<string>",
"s3Bucket": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"supportContact": "<string>",
"presenceEnabled": true,
"traceSharingEnabled": true,
"s3Endpoint": "<string>",
"s3AccessKeyId": "<string>",
"s3Bucket": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}Organization
Update organization
Update the organization profile. Partial: only the fields present are written, and the response is exactly what a subsequent GET returns.
PATCH
/
api
/
organization
Python
import requests
url = "https://app.langwatch.ai/api/organization"
payload = {
"name": "<string>",
"supportContact": "<string>",
"presenceEnabled": True,
"traceSharingEnabled": True,
"s3Endpoint": "<string>",
"s3AccessKeyId": "<string>",
"s3SecretAccessKey": "<string>",
"s3Bucket": "<string>"
}
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: '<string>',
supportContact: '<string>',
presenceEnabled: true,
traceSharingEnabled: true,
s3Endpoint: '<string>',
s3AccessKeyId: '<string>',
s3SecretAccessKey: '<string>',
s3Bucket: '<string>'
})
};
fetch('https://app.langwatch.ai/api/organization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://app.langwatch.ai/api/organization \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"supportContact": "<string>",
"presenceEnabled": true,
"traceSharingEnabled": true,
"s3Endpoint": "<string>",
"s3AccessKeyId": "<string>",
"s3SecretAccessKey": "<string>",
"s3Bucket": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"supportContact": "<string>",
"presenceEnabled": true,
"traceSharingEnabled": true,
"s3Endpoint": "<string>",
"s3AccessKeyId": "<string>",
"s3Bucket": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}Authorizations
Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.
Body
application/json
Required string length:
1 - 255Maximum string length:
255Available options:
AGENT_GOVERNANCE, LLM_OPS, null Maximum string length:
2048Maximum string length:
1024Maximum string length:
1024Maximum string length:
1024Response
200 - application/json
Success
Available options:
AGENT_GOVERNANCE, LLM_OPS, null Was this page helpful?
⌘I