curl --request POST \
--url https://statsigapi.net/console/v1/layers/{id} \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
{
"description": "<string>",
"parameters": [
{
"name": "<string>",
"type": "string",
"defaultValue": "<string>",
"description": "<string>"
}
],
"targetApps": "<string>"
}
'{
"message": "Layer updated successfully.",
"data": {
"id": "the_best_layer",
"description": "new description",
"idType": "userID",
"lastModifierID": "4dcQUIpS8PHObBGD7HJwOx",
"lastModifiedTime": 1720734957520,
"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": [
{
"name": "a_parameter",
"type": "boolean",
"defaultValue": true
},
{
"name": "b_parameter",
"type": "number",
"defaultValue": 123
},
{
"name": "c_parameter",
"type": "string",
"defaultValue": "this is a string"
},
{
"name": "d_parameter",
"type": "array",
"defaultValue": []
},
{
"name": "e_parameter",
"type": "object",
"defaultValue": {
"key": "value"
}
}
]
}
}curl --request POST \
--url https://statsigapi.net/console/v1/layers/{id} \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
{
"description": "<string>",
"parameters": [
{
"name": "<string>",
"type": "string",
"defaultValue": "<string>",
"description": "<string>"
}
],
"targetApps": "<string>"
}
'{
"message": "Layer updated successfully.",
"data": {
"id": "the_best_layer",
"description": "new description",
"idType": "userID",
"lastModifierID": "4dcQUIpS8PHObBGD7HJwOx",
"lastModifiedTime": 1720734957520,
"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": [
{
"name": "a_parameter",
"type": "boolean",
"defaultValue": true
},
{
"name": "b_parameter",
"type": "number",
"defaultValue": 123
},
{
"name": "c_parameter",
"type": "string",
"defaultValue": "this is a string"
},
{
"name": "d_parameter",
"type": "array",
"defaultValue": []
},
{
"name": "e_parameter",
"type": "object",
"defaultValue": {
"key": "value"
}
}
]
}
}id
A detailed description of the layer, explaining its purpose and functionality.
1000An array of parameters associated with the layer, each defining specific attributes.
Show child attributes
List of target applications that this layer is intended for.
Was this page helpful?