POST
/
assignments
{
  "assignments": {
    "experiment_1": "treatment-a",
    "experiment_2": "control"
  },
  "new_assignments": []
}

Body

application/json
subject
object
required

Mapping of subject types to subject IDs.

experiments
string[]
required

List of experiment IDs to get or make assignments for.

assign
boolean

If true, make new assignments if the subject isn't in an experiment, if false or ommitted, will only return active assignments.

Response

200 - application/json
assignments
object
required

Mapping of experiment IDs to the subject's assignment in the experiment. If assign was true, this will include existing and new assignments, otherwise this will only include existing assignments.

new_assignments
string[]
required

List of experiments that the subject was put into as part of this request. If assign was not set to true, this array will be empty.