Update tenant
curl --request PATCH \
--url https://api.example.com/api/v2/tenants/{tenant_name} \
--header 'Content-Type: application/json' \
--header 'x-chroma-token: <api-key>' \
--data '
{
"resource_name": "<string>"
}
'import requests
url = "https://api.example.com/api/v2/tenants/{tenant_name}"
payload = { "resource_name": "<string>" }
headers = {
"x-chroma-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-chroma-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({resource_name: '<string>'})
};
fetch('https://api.example.com/api/v2/tenants/{tenant_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));false{}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Tenant
Update tenant
Updates an existing tenant by name.
PATCH
/
api
/
v2
/
tenants
/
{tenant_name}
Update tenant
curl --request PATCH \
--url https://api.example.com/api/v2/tenants/{tenant_name} \
--header 'Content-Type: application/json' \
--header 'x-chroma-token: <api-key>' \
--data '
{
"resource_name": "<string>"
}
'import requests
url = "https://api.example.com/api/v2/tenants/{tenant_name}"
payload = { "resource_name": "<string>" }
headers = {
"x-chroma-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-chroma-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({resource_name: '<string>'})
};
fetch('https://api.example.com/api/v2/tenants/{tenant_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));false{}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Was this page helpful?
⌘I