Skip to content

Feature Values

Operations Summary

Method Endpoint Description
POST /api/feature-values/ Update feature flags

Update feature flags

Allows administrators to enable or disable specific feature flags in the system. The request should be a dictionary where keys are feature sections and values are dictionaries of feature keys and their boolean state.

1
2
3
4
http \
  POST \
  https://api.example.com/api/feature-values/ \
  Authorization:"Token YOUR_API_TOKEN"
1
2
3
4
5
6
7
8
9
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.feature_values import feature_values # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = feature_values.sync(client=client)

print(response)
  1. API Source: feature_values
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import { featureValues } from 'waldur-js-client';

try {
  const response = await featureValues({
  auth: "Token YOUR_API_TOKEN"
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}

200 -