v2

latestOpenAPI 3.0.02026-08-073221853.1 MB
Experiments
Experiments (Warehouse Native)

Post Assignment Source

post/console/v1/experiments/assignment_source/{name}

Path parameters

namestring required

Name of the assignment source

Request body

namestring

Optional new name for the assignment source.

descriptionstring

Optional updated context for the assignment source.

isVerifiedboolean

Marks the assignment source as verified for internal trustworthiness.

tagsstring[]

Optional updated tags for categorization.

sqlstring required

SQL query defining the data source for assignments.

timestampColumnstring required

Column name representing the timestamp of assignments.

experimentIDColumnstring required

Column name for the experiment ID associated with the assignments.

groupIDColumnstring required

Column name for the group ID linked to the assignments.

groupNameColumnstring

Optional column name for the group name linked to the assignments.

isReadOnlyboolean

Specifies if the source can only be edited via the Console API.

teamstring nullable

Optional field indicating the team name responsible for the assignment source, aiding in accountability and management.

teamIDstring nullable

Optional field indicating the team ID responsible for the assignment source, aiding in accountability and management.

scheduledReloadHourinteger nullable

Optional field indicating what UTC hour to run a scheduled scan for the assignment source.

dryRunboolean

Skips persisting the assignment source (used to validate that inputs are correct)

Example request

{
  "owner": {
    "ownerID": "user123",
    "ownerType": "USER",
    "ownerName": "John Doe",
    "ownerEmail": "owner123@test.com"
  }
}

Response

Post Assignment Source response

messagestring required

A simple string explaining the result of the operation.

Example response

{
  "message": "Assignment Source updated successfully",
  "data": {
    "name": "exposures3",
    "description": "qweqwe",
    "tags": [],
    "sql": "SELECT * FROM shoppy-sales.experiment_data.exposures",
    "timestampColumn": "ts",
    "groupIDColumn": "group_id",
    "experimentIDColumn": "experiment_name",
    "idTypeMapping": [
      {
        "statsigUnitID": "stableID",
        "column": "user_id"
      }
    ]
  }
}