Optimizely: Turn on/off feature flag via API call or code

Vote:
 

How can I turn on/off Optimizely flag via an API call or code(using SDK) from the backend? I don't want to turn it on/off via Optimizely UI and automate it based on certain events trigeering

#302988
Jun 05, 2023 21:32
Vote:
 

Hi Kumar,

Have you look into archiving the flag , this might achieve what you are looking for.

Paul

#303032
Jun 06, 2023 10:21
Vote:
 

Hi Paul,

Archiving/Unarchiving the flag does not turn it on & off. It stays off in both cases. 

Thank You

#304177
Jun 27, 2023 15:10
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.