Projects
[BETA] Update an action set.
Enterprise feature
[BETA] This API is in beta state, which means it may change or be removed in the future.
Updates an existing action set identified by its id.
put/api/admin/projects/{projectId}/actions/{id}
Path parameters
projectIdstring required
idstring required
Request body
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
actionsSchema
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"
}
}
}