Skip to main content
POST
Create Gate

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

Create a new gate

isEnabled
boolean
description
string
Maximum string length: 1000
rules
object[]
tags
string[]
type
enum<string>
Available options:
PERMANENT,
TEMPORARY
idType
string
targetApps
creatorID
string | null
creatorEmail
string | null
team
string | null
teamID
string | null
measureMetricLifts
boolean
monitoringMetrics
object[]
reviewSettings
object

Whether reviews are required for this gate. If a gate has reviews required due to a project-level or team-level setting, setting this will have no effect.

precommitWebhook
object | null
name
string
Required string length: 3 - 100
Pattern: ^[a-zA-Z0-9_\-. ]*$
id
string
Required string length: 3 - 100
Pattern: ^[a-zA-Z0-9_\-.]*$

Response

200 - application/json

Create gate response

message
string
required

A simple string explaining the result of the operation.

data
object
required

A single result.