Hi! I'm trying to create experiment via API reques...
# ask-questions
p
Hi! I'm trying to create experiment via API request. Here is what my payload looks like:
Copy code
{
  "datasourceId": "",
  "assignmentQueryId": "anonymous_id",
  "trackingKey": "test_key_api",
  "name": "[API] test",
  "variations": [
    {
      "key": "0",
      "name": "Variation 0"
    },
    {
      "key": "1",
      "name": "Variation 1"
    }
  ]
}
According to docs "datasourceId" field is required, but actually we don't have any connected datasource. In the UI case, I can select "Manual" option and in the API response it will be an empty string
"datasourceId": ""
, but can't do the same when trying to create some experiment (error: {'message': 'Invalid data source: '}) Is there a way to create experiment without datasource id param?
f
interesting - how are you using GrowthBook experiments without a data source?
are you meaning to use GrowthBook for assignment?