Authorizations
Headers
Body
application/json
Example:
Required range:
0 <= x <= 23curl --request POST \
--url https://statsigapi.net/console/v1/experiments/assignment_sources \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>",
"isVerified": true,
"tags": [
"<string>"
],
"sql": "<string>",
"timestampColumn": "<string>",
"experimentIDColumn": "<string>",
"groupIDColumn": "<string>",
"idTypeMapping": [
{
"statsigUnitID": "<string>",
"column": "<string>"
}
],
"isReadOnly": true,
"owner": {
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "[email protected]"
},
"team": "<string>",
"teamID": "<string>",
"scheduledReloadHour": 11,
"dryRun": true
}'{
"message": "Assignment Source created successfully",
"data": {
"name": "exposures4",
"description": "",
"tags": [],
"sql": "SELECT * FROM shoppy-sales.experiment_data.exposures",
"timestampColumn": "ts",
"groupIDColumn": "group_id",
"experimentIDColumn": "experiment_name",
"idTypeMapping": [
{
"statsigUnitID": "stableID",
"column": "user_id"
}
]
}
}curl --request POST \
--url https://statsigapi.net/console/v1/experiments/assignment_sources \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>",
"isVerified": true,
"tags": [
"<string>"
],
"sql": "<string>",
"timestampColumn": "<string>",
"experimentIDColumn": "<string>",
"groupIDColumn": "<string>",
"idTypeMapping": [
{
"statsigUnitID": "<string>",
"column": "<string>"
}
],
"isReadOnly": true,
"owner": {
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "[email protected]"
},
"team": "<string>",
"teamID": "<string>",
"scheduledReloadHour": 11,
"dryRun": true
}'{
"message": "Assignment Source created successfully",
"data": {
"name": "exposures4",
"description": "",
"tags": [],
"sql": "SELECT * FROM shoppy-sales.experiment_data.exposures",
"timestampColumn": "ts",
"groupIDColumn": "group_id",
"experimentIDColumn": "experiment_name",
"idTypeMapping": [
{
"statsigUnitID": "stableID",
"column": "user_id"
}
]
}
}Show child attributes
Show child attributes
0 <= x <= 23Was this page helpful?