Partially Update Experiment Overrides

Partially Update Experiment Overrides

patchhttps://statsigapi.net/console/v1/experiments/{id}/overrides

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Path parameters

idstringrequired

id

Body

application/json
overridesobject[]required

Array of experiment overrides, each specifying type, ID, and group ID.

Show child attributes
typestringrequired
Allowed values:gatesegment
idstringrequired

The id of the segment or gate

groupIDstringrequired

The experiment group which user will be forced into

environmentstring

Optional environment designation (e.g., production, staging) for the experiment.

Constraints:nullable
userIDOverridesobject[]required

Array of user ID overrides, specifying which users to force into experiment groups.

Show child attributes
groupIDstringrequired

The experiment group the user will be forced into.

idsstring[]required

Array of user IDs to be assigned to the specified experiment group.

environmentstring

Optional environment designation (e.g., production, staging) for the experiment.

Constraints:nullable
unitTypestring

Optional type of unit for the experiment, defining the scope of the override.

Constraints:nullable

Response

application/json
200· Partially Update Experiment Overrides Success
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
overridesobject[]required

Array of experiment overrides, each specifying type, ID, and group ID.

typestringrequired
Allowed values:gatesegment
idstringrequired

The id of the segment or gate

groupIDstringrequired

The experiment group which user will be forced into

environmentstring

Optional environment designation (e.g., production, staging) for the experiment.

Constraints:nullable
userIDOverridesobject[]required

Array of user ID overrides, specifying which users to force into experiment groups.

groupIDstringrequired

The experiment group the user will be forced into.

idsstring[]required

Array of user IDs to be assigned to the specified experiment group.

environmentstring

Optional environment designation (e.g., production, staging) for the experiment.

Constraints:nullable
unitTypestring

Optional type of unit for the experiment, defining the scope of the override.

Constraints:nullable
401· This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequired
Allowed values:401
messagestringrequired
404· Experiment not found.
statusintegerrequired
Allowed values:404
messagestringrequired

Was this helpful?