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