Create Assignment Source
https://statsigapi.net/console/v1/experiments/assignment_sourcesAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Body
application/jsonnamestringrequiredUnique identifier for the assignment source.
descriptionstringOptional detailed context for the assignment source.
isVerifiedbooleanMarks the assignment source as verified for internal trustworthiness.
tagsstring[]Optional tags for categorization.
sqlstringrequiredSQL query defining the data source for assignments.
timestampColumnstringrequiredColumn name representing the timestamp of assignments.
experimentIDColumnstringrequiredColumn name for the experiment ID associated with the assignments.
groupIDColumnstringrequiredColumn name for the group ID linked to the assignments.
groupNameColumnstringOptional column name for the group name linked to the assignments.
idTypeMappingobject[]requiredMappings of Statsig units to their respective columns.
Show child attributes
statsigUnitID[]stringrequiredID for the Statsig unit.
column[]stringrequiredColumn name associated with the ID type mapping.
isReadOnlybooleanSpecifies if the source can only be edited via the Console API.
ownerobjectSchema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
Show child attributes
ownerIDstringID of the owner
ownerTypestringType of the owner (e.g., SDK_KEY or USER)
ownerNamestringThe name of the owner. This field is optional.
ownerEmailstringThe email of the owner. This field is optional.
teamstringOptional field indicating the team name responsible for the metric, aiding in accountability and management.
teamIDstringOptional field indicating the team ID responsible for the metric, aiding in accountability and management.
scheduledReloadHourintegerOptional field indicating what UTC hour to run a scheduled scan for the assignment source.
dryRunbooleanSkips persisting the assignment source (used to validate that inputs are correct)
Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
namestringrequiredUnique identifier for the assignment source.
descriptionstringrequiredDetailed context and purpose of the assignment source.
isVerifiedbooleanMarks the assignment source as verified for internal trustworthiness.
tagsstring[]requiredTags for categorization and search.
sqlstringrequiredSQL query defining the data source for assignments.
timestampColumnstringrequiredColumn name representing the timestamp of assignments.
experimentIDColumnstringrequiredColumn name for the experiment ID associated with the assignments.
groupIDColumnstringrequiredColumn name for the group ID linked to the assignments.
groupNameColumnstringOptional column name for the group name linked to the assignments.
idTypeMappingobject[]requiredMappings of Statsig units to their respective columns.
Show child attributes
statsigUnitID[]stringrequiredID for the Statsig unit.
column[]stringrequiredColumn name associated with the ID type mapping.
isReadOnlybooleanSpecifies if the source can only be edited via the Console API.
ownerobjectSchema for owner data including ID, type, name. Note that if Entity is created by CONSOLE API, owner will be undefined.
Show child attributes
ownerIDstringID of the owner
ownerTypestringType of the owner (e.g., SDK_KEY or USER)
ownerNamestringThe name of the owner. This field is optional.
ownerEmailstringThe email of the owner. This field is optional.
teamstringOptional field indicating the team name responsible for the metric, aiding in accountability and management.
teamIDstringOptional field indicating the team ID responsible for the metric, aiding in accountability and management.
scheduledReloadHourintegerOptional field indicating what UTC hour to run a scheduled scan for the assignment source.
statusintegerrequiredmessagestringrequiredstatusintegerrequiredmessagestringrequiredWas this helpful?