Authorizations
Headers
Optional header to respect review settings for mutation endpoints.
Path Parameters
id
Body
application/json
curl --request PATCH \
--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>"
}
],
"targetApps": "<string>"
}'
{
"message": "Layer updated successfully.",
"data": {
"id": "the_best_layer",
"description": "new description",
"idType": "userID",
"lastModifierID": "4dcQUIpS8PHObBGD7HJwOx",
"lastModifiedTime": 1720734756985,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "4dcQUIpS8PHObBGD7HJwOx",
"createdTime": 1720733942515,
"creatorName": "CONSOLE API",
"creatorEmail": null,
"targetApps": [
"new fo"
],
"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 PATCH \
--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>"
}
],
"targetApps": "<string>"
}'
{
"message": "Layer updated successfully.",
"data": {
"id": "the_best_layer",
"description": "new description",
"idType": "userID",
"lastModifierID": "4dcQUIpS8PHObBGD7HJwOx",
"lastModifiedTime": 1720734756985,
"lastModifierName": "CONSOLE API",
"lastModifierEmail": null,
"creatorID": "4dcQUIpS8PHObBGD7HJwOx",
"createdTime": 1720733942515,
"creatorName": "CONSOLE API",
"creatorEmail": null,
"targetApps": [
"new fo"
],
"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"
}
}
]
}
}
Optional header to respect review settings for mutation endpoints.
id
A detailed description of the layer, explaining its purpose and functionality.
1000
An array of parameters associated with the layer, each defining specific attributes.
Show child attributes
List of target applications that this layer is intended for.