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
Partial update layer response
The response is of type object
.
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"
}
}
]
}
}