Flag triggers
Create flag trigger
Create a new flag trigger.
post/api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey}
Path parameters
projectKeystring string required
The project key
The project key
environmentKeystring string required
The environment key
The environment key
featureFlagKeystring string required
The feature flag key
The feature flag key
Request body
Example request
{
"comment": "example comment",
"instructions": [
{
"kind": "turnFlagOn"
}
],
"integrationKey": "generic-trigger"
}Response
Flag trigger response
Example response
{
"_version": 1,
"_maintainerId": "12ab3c45de678910abc12345",
"_maintainer": {
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"email": "ariel@acme.com"
},
"enabled": true,
"_integrationKey": "generic-trigger",
"_triggerCount": 3
}