Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

If using Bearer auth, pass the Secret Key as the token:

Path Parameters

id
string
required

The id of the requested resource

Body

application/json
environments
object
required
reason
string
comment
string

Comment to record on the revision this toggle publishes, when it changes any environment. Defaults to "Created via REST API". (reason is recorded in the audit log only.)

Response

200 - application/json

Resource created

feature
object
required
bypassedGates
object[]

Gates that would have blocked this publish but were bypassed by the caller's authority. Present only when at least one gate was bypassed.