Update a layer
https://statsigapi.net/console/v1/layers/{id}Authorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredid
Body
application/jsondescriptionstringrequiredA detailed description of the layer, explaining its purpose and functionality.
parametersobject[]requiredAn array of parameters associated with the layer, each defining specific attributes.
Show child attributes
name[]stringrequiredThe name of this parameter, used for identification within the layer.
type[]stringrequiredThe data type that this parameter returns. Allowed types include: string, boolean, number, object, and array.
defaultValue[]oneOfrequiredThe default value for this parameter, which must match the specified type.
description[]stringAn optional helpful description of what this layer parameter does, providing context for its purpose.
schema[]stringOptional JSON schema for object parameters. If provided, defaultValue must satisfy the schema.
targetAppsoneOfList of target applications that this layer is intended for.
Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
idstringrequiredID
namestringOptional name for the configuration.
idTypestringrequiredThe ID type used for this layer, important for validation.
descriptionstringrequiredA detailed description of the layer, explaining its purpose and functionality.
lastModifierIDstringrequiredID of the last modifier.
lastModifiedTimenumberrequiredTime of the last modification.
lastModifierEmailstringrequiredEmail of the last modifier.
lastModifierNamestringrequiredName of the last modifier.
creatorIDstringrequiredID of the user who created the entity.
createdTimenumberrequiredTimestamp when the entity was created.
creatorNamestringrequiredName of the creator.
creatorEmailstringrequiredEmail of the creator.
tagsstring[]Optional tags for categorization.
targetAppsoneOfList of target applications that this layer is intended for.
holdoutIDsstring[]Holdouts applied to this configuration.
teamstringOptional name for the responsible team.
teamIDstringOptional ID of the responsible team.
versionnumberVersion number
isImplicitLayerbooleanrequiredIndicates if the layer was automatically created by Statsig during experiment creation.
parametersobject[]requiredAn array of parameters associated with the layer, each defining specific attributes.
Show child attributes
name[]stringrequiredThe name of this parameter, used for identification within the layer.
type[]stringrequiredThe data type that this parameter returns. Allowed types include: string, boolean, number, object, and array.
defaultValue[]oneOfrequiredThe default value for this parameter, which must match the specified type.
description[]stringAn optional helpful description of what this layer parameter does, providing context for its purpose.
schema[]stringOptional JSON schema for object parameters. If provided, defaultValue must satisfy the schema.
targeting_gate_parameter_valuesobject[]requiredParameter values returned when a targeting gate passes during ship-with-targeting.
Show child attributes
targetingGateName[]stringrequiredThe name of the targeting gate for these shipped values.
parameters[]objectrequiredLayer parameter values returned when the targeting gate passes.
holdout_parameter_valuesobject[]requiredHoldout-specific parameter values for this layer.
Show child attributes
holdoutID[]stringrequiredThe ID of the holdout for these layer parameter values.
parameters[]objectrequiredLayer parameter values returned when the holdout gate passes.
excludeNewParams[]booleanrequiredWhether newly added layer parameters should be excluded from this holdout edge.
permalinkstringrequiredA permalink to this layer in the Statsig Console.
statusintegerrequiredmessagestringrequiredstatusintegerrequiredmessagestringrequiredWas this helpful?