Authorizations
Headers
Body
application/json
curl --request POST \
--url https://statsigapi.net/console/v1/experiments/entity_properties \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>",
"tags": [
"<string>"
],
"sql": "<string>",
"timestampColumn": "<string>",
"timestampAsDay": true,
"idTypeMapping": [
{
"statsigUnitID": "<string>",
"column": "<string>"
}
],
"isReadOnly": true,
"team": "<string>",
"teamID": "<string>",
"dryRun": true
}'{
"message": "Entity Property Source created successfully",
"data": {
"name": "Location",
"description": "",
"tags": [],
"sql": "SELECT * FROM shoppy-sales.setup.user_properties",
"timestampColumn": "timestamp",
"idTypeMapping": [
{
"statsigUnitID": "stableID",
"column": "user_id"
}
],
"timestampAsDay": true
}
}curl --request POST \
--url https://statsigapi.net/console/v1/experiments/entity_properties \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>",
"tags": [
"<string>"
],
"sql": "<string>",
"timestampColumn": "<string>",
"timestampAsDay": true,
"idTypeMapping": [
{
"statsigUnitID": "<string>",
"column": "<string>"
}
],
"isReadOnly": true,
"team": "<string>",
"teamID": "<string>",
"dryRun": true
}'{
"message": "Entity Property Source created successfully",
"data": {
"name": "Location",
"description": "",
"tags": [],
"sql": "SELECT * FROM shoppy-sales.setup.user_properties",
"timestampColumn": "timestamp",
"idTypeMapping": [
{
"statsigUnitID": "stableID",
"column": "user_id"
}
],
"timestampAsDay": true
}
}Was this page helpful?