import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
const subTenant = await client.subTenants.update('st_abc123def456');
console.log(subTenant.id);{
"id": "st_abc123def456",
"tenantId": "tenant_123",
"subTenantId": "production",
"name": "Production Environment",
"isRegistered": true,
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z",
"description": "Main production environment for customer workflows"
}Updates the name and/or description of a registered sub-tenant. Requires secret key authentication.
import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
const subTenant = await client.subTenants.update('st_abc123def456');
console.log(subTenant.id);{
"id": "st_abc123def456",
"tenantId": "tenant_123",
"subTenantId": "production",
"name": "Production Environment",
"isRegistered": true,
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z",
"description": "Main production environment for customer workflows"
}Chave de API do tenant (publishable key ou secret key)
Chave de API do tenant (publishable key ou secret key)
Sub-tenant registration ID
"st_abc123def456"
Sub-tenant updated successfully
Unique registration identifier
"st_abc123def456"
Tenant identifier
"tenant_123"
The actual sub-tenant identifier used in workflows/runs/metrics
"production"
Display name for the sub-tenant
"Production Environment"
Whether this sub-tenant is registered (always true for this DTO)
true
Creation timestamp
"2024-01-15T10:30:00.000Z"
Last update timestamp
"2024-01-15T10:30:00.000Z"
Optional description
"Main production environment for customer workflows"
Was this page helpful?