Create flag trigger
Create a new flag trigger.
Path parameters
projectKey
The project key
environmentKey
The environment key
featureFlagKey
The feature flag key
Headers
Authorization
Request
This endpoint expects an object.
integrationKey
The unique identifier of the integration for your trigger. Use generic-trigger
for integrations not explicitly supported.
comment
Optional comment describing the trigger
instructions
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
_id
The ID of this flag trigger
_version
The flag trigger version
_creationDate
Timestamp of when the flag trigger was created
_maintainerId
The ID of the flag trigger maintainer
_maintainer
Details on the member who maintains this flag trigger
enabled
Whether the flag trigger is currently enabled
_integrationKey
The unique identifier of the integration for your trigger
instructions
Details on the action to perform when triggering
_lastTriggeredAt
Timestamp of when the trigger was most recently executed
_recentTriggerBodies
Details on recent flag trigger requests.
_triggerCount
Number of times the trigger has been executed
triggerURL
The unguessable URL for this flag trigger
_links
The location and content type of related resources