Skip to content

Function: toggleFeatureForProject() ​

ts
function toggleFeatureForProject(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  features?: object[];
}>;

Defined in: src/cloud/api/projectFeatures.ts:26

Sets the state of a project feature.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ featureKey: string; projectIdOrKey: string; state?: string & object | "ENABLED" | "DISABLED" | "COMING_SOON"; }-
parameters.featureKeystringThe key of the feature.
parameters.projectIdOrKey?stringThe ID or (case-sensitive) key of the project.
parameters.state?string & object | "ENABLED" | "DISABLED" | "COMING_SOON"The feature state.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; features?: object[]; }>