Create flag trigger

Create a new flag trigger.

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequiredformat: "string"
The project key
environmentKeystringRequiredformat: "string"
The environment key
featureFlagKeystringRequiredformat: "string"
The feature flag key

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

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error