Skip to content

Instantly share code, notes, and snippets.

@Hkazanci93
Created November 8, 2021 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hkazanci93/6abeec281b89eba7770fe3be3a0bc93b to your computer and use it in GitHub Desktop.
Save Hkazanci93/6abeec281b89eba7770fe3be3a0bc93b to your computer and use it in GitHub Desktop.
curl --location --request POST 'localhost:8080/experiment' \
--header 'Content-Type: application/json' \
--data-raw '{
"goalIds": [
"purchase"
],
"id": "subscription1",
"triggerEventId": "user-plan-screen-view",
"variants": {
"variants": [
{
"id": "red",
"params": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"weight": 20
},
{
"id": "blue",
"params": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"weight": 80
}
]
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment