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
_idstringOptional
The ID of this flag trigger
_versionintegerOptional
The flag trigger version
_creationDatelongOptional
Timestamp of when the flag trigger was created
_maintainerIdstringOptional
The ID of the flag trigger maintainer
_maintainerobjectOptional
Details on the member who maintains this flag trigger
enabledbooleanOptional
Whether the flag trigger is currently enabled
_integrationKeystringOptional
The unique identifier of the integration for your trigger
instructionslist of maps from strings to anyOptional
Details on the action to perform when triggering
_lastTriggeredAtlongOptional
Timestamp of when the trigger was most recently executed
_recentTriggerBodieslist of objectsOptional
Details on recent flag trigger requests.
_triggerCountintegerOptional
Number of times the trigger has been executed
triggerURLstringOptional
The unguessable URL for this flag trigger

Errors