Assignments
Manage
All the things you can do with assignments.
Implementation
To learn how to implement experiments with Winning Variant, read more about the Variant API.
Manage through Snowflake
Roles
A user must be assigned of the following application roles to execute any of the procedures described on this page:
admin
editor
Get assignments
To get assignments for a given subject, call the following stored procedure in Snowflake:
Returns a table of assignments for the given subject ID, including the following columns:
Column | Description | Data Type |
---|---|---|
experiment_id | Experiment ID | VARCHAR |
variant_id | ID of the variant the subject is assigned within the experiment. | VARCHAR |
new_assignment | Whether this assignment was made as part of this request (always false ). | BOOLEAN |
Examples
Get or make assignments
Gets an assignment or makes one if it doesn’t exist:
Returns a table of assignments for the given subject ID, including the following columns:
Column | Description | Data Type |
---|---|---|
experiment_id | Experiment ID | VARCHAR |
variant_id | ID of the variant the subject is assigned within the experiment. | VARCHAR |
new_assignment | Whether this assignment was made as part of this request. | BOOLEAN |