Adaptive triggers

List adaptive triggers

GET
/api/v2/projects/{projectKey}/environments/{environmentKey}/adaptive-triggers

List all adaptive triggers for a resource.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

projectKey*string
environmentKey*string

Query Parameters

resourceKind*string

Value in

  • "flag"
  • "ai-config"
resourceKey*string
limit?integer

The number of items to return.

Range1 <= value <= 50
Default25
offset?integer

Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query limit.

Range0 <= value
Default0

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/projects/string/environments/string/adaptive-triggers?resourceKind=flag&resourceKey=string"
{  "_links": {    "next": {      "href": "href",      "type": "type"    },    "last": {      "href": "href",      "type": "type"    },    "prev": {      "href": "href",      "type": "type"    },    "self": {      "href": "href",      "type": "type"    },    "first": {      "href": "href",      "type": "type"    }  },  "totalCount": 5,  "items": [    {      "resourceKind": "flag",      "createdAt": 6,      "task": {        "instructions": [          {            "variationId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",            "kind": "updateFallthroughVariationOrRollout",            "ruleId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"          },          {            "variationId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",            "kind": "updateFallthroughVariationOrRollout",            "ruleId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"          }        ]      },      "resourceKey": "resourceKey",      "name": "name",      "id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",      "triggerSource": {        "alertId": 0,        "type": "observabilityAlert"      },      "enabled": true,      "updatedAt": 1    },    {      "resourceKind": "flag",      "createdAt": 6,      "task": {        "instructions": [          {            "variationId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",            "kind": "updateFallthroughVariationOrRollout",            "ruleId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"          },          {            "variationId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",            "kind": "updateFallthroughVariationOrRollout",            "ruleId": "046b6c7f-0b8a-43b9-b35d-6489e6daee91"          }        ]      },      "resourceKey": "resourceKey",      "name": "name",      "id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",      "triggerSource": {        "alertId": 0,        "type": "observabilityAlert"      },      "enabled": true,      "updatedAt": 1    }  ]}