toggleFeatureForProject method

Future<ContainerForProjectFeatures> toggleFeatureForProject({
  1. required String projectIdOrKey,
  2. required String featureKey,
  3. required ProjectFeatureState body,
})

Sets the state of a project feature.

Implementation

Future<ContainerForProjectFeatures> toggleFeatureForProject(
    {required String projectIdOrKey,
    required String featureKey,
    required ProjectFeatureState body}) async {
  return ContainerForProjectFeatures.fromJson(await _client.send(
    'put',
    'rest/api/3/project/{projectIdOrKey}/features/{featureKey}',
    pathParameters: {
      'projectIdOrKey': projectIdOrKey,
      'featureKey': featureKey,
    },
    body: body.toJson(),
  ));
}