curl --request POST \
--url https://statsigapi.net/console/v1/layers \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>",
"idType": "<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>",
"description": "<string>",
"idType": "<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.
Create Layer Response
The response is of type object
.