Actions
Introduction
Actions define what should happen after a Trigger has been evaluated.
An Action belongs to a Trigger and executes logic based on its documented Action Type and config.
Actions can be targeted to users/departments and can be overwritten in specific contexts via ActionOverwrites.
Rich-text values in type-specific config.text, config.body, and config.description keys use the shared Rich Text HTML format.
System Variable-enabled text fields in createInfoboardPost, createTaskAssignment, and notify configs must contain valid rendered templates. Their computed_targetables_system_variable config uses key-only syntax.
Model Definition
Relations
users
User
Belongs To Many
Pivot user_action
departments
Department
Belongs To Many
Pivot department_action
Action Types
createInfoboardPost- Creates an InfoboardPost.createTaskAssignment- Creates a TaskAssignment.notify- Sends a notification.webhook- Dispatches an outbound webhook request.
Capabilities
Targetables -
assign_mode,user_ids, anddepartment_idsselect the recipients used by the action type.Translations - Localizes
title; examples useen-US.
Create
Create a new Action.
Definition
POST /api/actions
Request Keys
title*
string
-
Action title.
lang_id
string
system language
Language for translatable Action fields. If omitted, the system language is used.
on_condition
boolean
true
Whether the Action runs on fulfilled (true) or failed (false) condition branch.
tries
integer
1
Number of retry attempts for execution.
timeout
integer
120
Timeout in seconds for execution.
config*
object
default config by type
Type-specific configuration payload.
computed_targetable_type
string | null
null
Optional Computed Targetable Type; the supported subset depends on the selected Action type.
active
boolean
true
Whether the Action is active.
sort_number
integer
-
Sort order inside the Trigger branch.
user_ids
array
[] for implicit modes
Explicit target users.
department_ids
array
[] for implicit modes
Explicit target departments.
Keys with * are required.
Behavior
An omitted
assign_modedefaults tonull, which defines no static targets.For the implicit modes
null,all,all_users, andall_group_accounts, bothuser_idsanddepartment_idsare replaced with empty arrays before validation. Any supplied explicit targets are discarded.
Example Request
Example Response
Update
Update an existing Action.
Definition
PUT /api/actions/{action}
Route Parameters
action
integer
Action ID.
Request Keys
title
string
-
Updated Action title.
trigger_id
integer
-
New Trigger ID.
lang_id
string
-
Updated language for translatable fields.
on_condition
boolean
-
Updated branch behavior.
tries
integer
-
Updated retry attempts.
timeout
integer
-
Updated timeout in seconds.
config
object
default config by type (only if type changed and config omitted)
Updated type-specific config payload.
assign_mode
string | null
current assign mode
Updated targeting strategy selected from the shared Assignment Modes.
computed_targetable_type
string | null
-
Updated Computed Targetable Type; the supported subset depends on the selected Action type.
active
boolean
-
Updated active state.
sort_number
integer
-
Updated sort order.
user_ids
array
Current selection; [] for implicit modes
Updated target users.
department_ids
array
Current selection; [] for implicit modes
Updated target departments.
Behavior
An omitted
assign_modepreserves the current assignment mode. An explicitnullselects no static targets.If the resulting mode is
null,all,all_users, orall_group_accounts, bothuser_idsanddepartment_idsare replaced with empty arrays before validation. This clears existing explicit assignments even when those keys are omitted.For explicit selection modes, omitted
user_idsanddepartment_idspreserve their current selections; submitted arrays replace the respective selection.
Example Request
Example Response
Delete
Delete an Action.
Definition
DELETE /api/actions/{action}
Route Parameters
action
integer
Action ID.
Example Request
Example Response
Last updated