feature

suspend fun feature(featureId: String): Feature(source)

Retrieves a specific feature by its identifier.

If autoCreate is enabled and the feature doesn't exist, a disabled feature will be created automatically. Otherwise, throws FeatureNotFoundException.

Return

The Feature object

Parameters

featureId

The unique identifier of the feature

Throws

if the feature doesn't exist and autoCreate is false