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
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { featureKey: string; projectIdOrKey: string; state?: string & object | "ENABLED" | "DISABLED" | "COMING_SOON"; } | - |
parameters.featureKey | string | The key of the feature. |
parameters.projectIdOrKey? | string | The 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[]; }>