curl --request POST \
--url https://statsigapi.net/console/v1/layers \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
{
"name": "<string>",
"idType": "<string>",
"description": "<string>",
"targetApps": "<string>",
"team": "<string>"
}
'{
"message": "Layer created successfully.",
"data": {
"id": "the_best_layer",
"description": "helpful summary of what this layer does",
"idType": "userID",
"lastModifierID": "4dcQUIpS8PHObBGD7HJwOx",
"lastModifiedTime": 1720733945538,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "4dcQUIpS8PHObBGD7HJwOx",
"createdTime": 1720733942515,
"creatorName": "CONSOLE API",
"creatorEmail": null,
"targetApps": [
"Android"
],
"holdoutIDs": [
"global_holdout",
"test_holdout"
],
"tags": [],
"team": "Console Team",
"isImplicitLayer": false,
"parameters": []
}
}curl --request POST \
--url https://statsigapi.net/console/v1/layers \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
{
"name": "<string>",
"idType": "<string>",
"description": "<string>",
"targetApps": "<string>",
"team": "<string>"
}
'{
"message": "Layer created successfully.",
"data": {
"id": "the_best_layer",
"description": "helpful summary of what this layer does",
"idType": "userID",
"lastModifierID": "4dcQUIpS8PHObBGD7HJwOx",
"lastModifiedTime": 1720733945538,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "4dcQUIpS8PHObBGD7HJwOx",
"createdTime": 1720733942515,
"creatorName": "CONSOLE API",
"creatorEmail": null,
"targetApps": [
"Android"
],
"holdoutIDs": [
"global_holdout",
"test_holdout"
],
"tags": [],
"team": "Console Team",
"isImplicitLayer": false,
"parameters": []
}
}Optional header to respect review settings for mutation endpoints.
The unique name of the layer, formatted as an ID (e.g., "A Layer" becomes "a_layer").
3 - 100The type of ID used for this layer, essential for validation in services.
A helpful description of what this layer does, providing context for its purpose.
1000List of target applications that this layer is associated with.
Optional identifier for the team responsible for this layer.
Create Layer Response
A simple string explaining the result of the operation.
A single result.
Show child attributes
ID
The ID type used for this layer, important for validation.
A detailed description of the layer, explaining its purpose and functionality.
1000ID of the last modifier.
Time of the last modification.
Email of the last modifier.
Name of the last modifier.
ID of the user who created the entity.
Timestamp when the entity was created.
Name of the creator.
Email of the creator.
Indicates if the layer was automatically created by Statsig during experiment creation.
An array of parameters associated with the layer, each defining specific attributes.
Show child attributes
The name of this parameter, used for identification within the layer.
The data type that this parameter returns. Allowed types include: string, boolean, number, object, and array.
string, number, boolean, object, array The default value for this parameter, which must match the specified type.
Optional name for the configuration.
Optional tags for categorization.
List of target applications that this layer is intended for.
Holdouts applied to this configuration.
Optional name for the responsible team.
Optional ID of the responsible team.
Version number