Get Features for Tenant
Get all features associated with a specific tenant
.
caution
This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Query endpoint instead.
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{
ListParams: warrant.ListParams{
Limit: 10,
},
})
ListResult<Feature> features = client.listFeaturesForTenant("15ksdf87a23g", new ListParams().withLimit(10));
// Class method
const features = await warrantClient.Feature.listFeaturesForTenant(
"15ksdf87a23g",
{ limit: 10 }
);
// Instance method
const tenant = await warrantClient.Tenant.get("15ksdf87a23g");
const features = await tenant.listFeatures({ limit: 10 });
# Class method
features = warrant.Feature.list_for_tenant("15ksdf87a23g", {"limit": 10})
# Instance method
tenant = warrant.Tenant.get("15ksdf87a23g")
features = tenant.list_features({"limit": 10})
# Class method
features = Warrant::Feature.list_for_tenant("15ksdf87a23g", { limit: 10 })
# Instance method
tenant = Warrant::Tenant.get("15ksdf87a23g")
features = tenant.list_features({ limit: 10 })
Response
[
{
"featureId": "dashboard"
},
{
"featureId": "enterprise-feature-2"
}
]