Get Features for Tenant
Get all features associated with a specific tenant
.
Endpoint
GET /v1/tenants/:tenantId/features
Request
- cURL
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
curl "https://api.warrant.dev/v1/tenants/15ksdf87a23g/features" \
-H "Authorization: ApiKey YOUR_KEY"
tenantFeatures, err := feature.ListFeaturesForTenant("15ksdf87a23g", &warrant.ListFeatureParams{})
int limit = 10;
int page = 1;
Feature[] features = client.listFeaturesForTenant("15ksdf87a23g", limit, page);
// Class method
const features = await warrantClient.Feature.listFeaturesForTenant(
"15ksdf87a23g",
{ limit: 10, page: 1 }
);
// Instance method
const tenant = await warrantClient.Tenant.get("15ksdf87a23g");
const features = await tenant.listFeatures({ limit: 10, page: 1 });
# Class method
features = warrant.Feature.list_for_tenant("15ksdf87a23g")
# Instance method
tenant = warrant.Tenant.get("15ksdf87a23g")
features = tenant.list_features()
# Class method
features = Warrant::Feature.list_for_tenant("15ksdf87a23g")
# Instance method
tenant = Warrant::Tenant.get("15ksdf87a23g")
tenant.list_features
Response
[
{
"featureId": "dashboard"
},
{
"featureId": "enterprise-feature-2"
}
]