Hi everyone, exploring growthbook for our usage. I...
# ask-questions
d
Hi everyone, exploring growthbook for our usage. I would like to create experiments and attach feature flags using api. I can find apis to create feature flags and create experiments, but I can't find an api to attach a featureflag to an experiment. From the UI i see that the api looks something like: https://api.growthbook.io/feature/test-feature-3/1/experiment, but I can't find this anywhere in the documentation. So how do I do that?
f
Hi Vamshi, welcome.
For features, you can make an experiment-ref
d
Ah, makes sense. I was looking at the UI flow and was trying to match it with APIs and didn't think to check here. Thanks a lot for the help!
d
Yep. found it. However I am now facing issues with creating experiments via the api. It keeps asking me to provide a valid datasourceId but I don't have any data sources yet, and I am able to create experiments from UI without adding a data source 😅
f
huh
ya, sounds like thats not correct
can you open a github issue for that?
d
Will do 👍
f
thanks
d
Hi @fresh-football-47124 did you get any chance to look at this? We need to be able to create experiments from our own admin console, and this is kinda dealbreaker for us