Create flag trigger

Create a new flag trigger.

Path parameters

projectKeystringRequired
The project key
environmentKeystringRequired
The environment key
featureFlagKeystringRequired
The feature flag key

Headers

AuthorizationstringRequired

Request

This endpoint expects an object.
integrationKeystringRequired

The unique identifier of the integration for your trigger. Use generic-trigger for integrations not explicitly supported.

commentstringOptional
Optional comment describing the trigger
instructionslist of maps from strings to anyOptional

The action to perform when triggering. This should be an array with a single object that looks like <code>{“kind”: “flag_action”}</code>. Supported flag actions are <code>turnFlagOn</code> and <code>turnFlagOff</code>.

Response

Flag trigger response
_idstring or null
The ID of this flag trigger
_versioninteger or null
The flag trigger version
_creationDatelong or null
Timestamp of when the flag trigger was created
_maintainerIdstring or null
The ID of the flag trigger maintainer
_maintainerobject or null
Details on the member who maintains this flag trigger
enabledboolean or null
Whether the flag trigger is currently enabled
_integrationKeystring or null
The unique identifier of the integration for your trigger
instructionslist of maps from strings to any or null
Details on the action to perform when triggering
_lastTriggeredAtlong or null
Timestamp of when the trigger was most recently executed
_recentTriggerBodieslist of objects or null
Details on recent flag trigger requests.
_triggerCountinteger or null
Number of times the trigger has been executed
triggerURLstring or null
The unguessable URL for this flag trigger

Errors