Skip to main content
POST
Create a Layer

Authorizations

STATSIG-API-KEY
string
header
required

Headers

x-respect-review-settings
string

Optional header to respect review settings for mutation endpoints.

Body

application/json
name
string
required

The unique name of the layer, formatted as an ID (e.g., "A Layer" becomes "a_layer").

Required string length: 3 - 100
Pattern: ^[A-Za-z0-9_ -]*$
idType
string
required

The type of ID used for this layer, essential for validation in services.

description
string

A helpful description of what this layer does, providing context for its purpose.

Maximum string length: 1000
targetApps

List of target applications that this layer is associated with.

team
string

Optional identifier for the team responsible for this layer.

Response

Create Layer Response

message
string
required

A simple string explaining the result of the operation.

data
object
required

A single result.