v7

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-013764062.2 MB
Projects

[BETA] Create an action set.

Enterprise feature

[BETA] This API is in beta state, which means it may change or be removed in the future.

Creates a new action set.

post/api/admin/projects/{projectId}/actions

Path parameters

projectIdstring required

Request body

namestring required

The name of the action set

descriptionstring nullable

The description of the action set

actorIdinteger required

The id of the service account that will execute the action

enabledboolean

Whether this action set is enabled or not

Example request

{
  "name": "Disable new features",
  "description": "Disables new features when error rate is above threshold",
  "actorId": 12,
  "enabled": true,
  "actions": [
    {
      "action": "disable-feature",
      "sortOrder": 1,
      "executionParams": {
        "featureName": "my-feature"
      }
    }
  ],
  "match": {
    "source": "signal-endpoint",
    "sourceId": 123,
    "payload": {
      "type": "error-rate-above-threshold"
    }
  }
}

Response

The resource was successfully created.

idinteger required

The ID of the action set.

projectstring required

The project that this action set belongs to.

createdAtstring date-time required

The date and time of when the action set was created.

createdByUserIdinteger required

The ID of the user that created this action set.

namestring required

The name of the action set

descriptionstring nullable

The description of the action set

actorIdinteger required

The id of the service account that will execute the action

enabledboolean

Whether this action set is enabled or not

Example response

{
  "id": 1,
  "project": "default",
  "createdAt": "2023-12-27T13:37:00+01:00",
  "createdByUserId": 1,
  "name": "Disable new features",
  "description": "Disables new features when error rate is above threshold",
  "actorId": 12,
  "enabled": true,
  "actions": [
    {
      "id": 1,
      "createdAt": "2023-12-27T13:37:00+01:00",
      "createdByUserId": 1,
      "action": "disable-feature",
      "sortOrder": 1,
      "executionParams": {
        "featureName": "my-feature"
      }
    }
  ],
  "match": {
    "source": "signal-endpoint",
    "sourceId": 123,
    "payload": {
      "type": "error-rate-above-threshold"
    }
  }
}