For the complete documentation index, see llms.txt. This page is also available as Markdown.

ActionOverwrites

Introduction

ActionOverwrites allow context-specific adjustments of an Action without modifying the base Action itself.

Typical use case: an Action is defined on a Trigger, but for a specific relatable entity (for example a task assignment), parts of the action config or targetables should differ.

Model Definition

Relations

Key
Relation
Type
Relation Field(s)

action

Belongs To

action_id

relatable

(Polymorphic)

Morph To

relatable_type, relatable_id

users

User

Belongs To Many

Pivot user_action_overwrite

departments

Department

Belongs To Many

Pivot department_action_overwrite

Traits

  • HasComputedTargetables

  • HasConfig

  • HasRelatable

  • HasTargetableRelations

  • SoftDeletes

  • HasFactory

Create

Create a new ActionOverwrite.

Definition

POST /api/action-overwrites

Request Keys

Key
Type
Default
Description

action_id*

integer

-

ID of the base Action that is overridden.

relatable_type*

string

-

Morph alias of the context entity for this overwrite. Allowed value: taskAssignment.

relatable_id*

integer

-

ID of the context entity for this overwrite.

config*

object

-

Partial override config for the selected Action type.

apply_targetables

boolean

false

Whether overwrite targetables should be applied.

assign_mode

string

none

Targeting strategy for overwrite targetables. Allowed values: null (none), all, all_users, all_group_accounts, any_of, one_of, any_of_user, one_of_user.

computed_targetable_type

string | null

null

Optional computed targetable resolver type (depends on base Action type). Available enum values: for_executing_department, for_executing_real_department, for_executing_user, for_executing_real_user, from_task_assignment, from_workflow_node, from_entity_select_fields_users, from_entity_select_fields_departments, for_workflow_node_department, for_workflow_node_executed_user_department, for_workflow_node_user, for_workflow_node_executed_user, for_system_variable_users, for_system_variable_departments.

user_ids

integer[]

[] (for assign mode none/all/...)

Explicit target users for the overwrite.

department_ids

integer[]

[] (for assign mode none/all/...)

Explicit target departments for the overwrite.

Keys marked with * are required.

Example Request

Example Response

Update

Update an existing ActionOverwrite.

Definition

PUT /api/action-overwrites/{actionOverwrite}

Request Keys

Key
Type
Default
Description

action_id

integer

-

New base Action ID.

relatable_type

string

-

New context entity morph alias. Allowed value: taskAssignment.

relatable_id

integer

-

New context entity ID.

config

object

-

Updated partial override config.

apply_targetables

boolean

-

Updated flag to apply overwrite targetables.

assign_mode

string

current assign mode

Updated targeting strategy for overwrite targetables. Allowed values: null (none), all, all_users, all_group_accounts, any_of, one_of, any_of_user, one_of_user.

computed_targetable_type

string | null

-

Updated computed targetable resolver type (depends on base Action type). Available enum values: for_executing_department, for_executing_real_department, for_executing_user, for_executing_real_user, from_task_assignment, from_workflow_node, from_entity_select_fields_users, from_entity_select_fields_departments, for_workflow_node_department, for_workflow_node_executed_user_department, for_workflow_node_user, for_workflow_node_executed_user, for_system_variable_users, for_system_variable_departments.

user_ids

integer[]

[] (for assign mode none/all/...)

Updated target users for the overwrite.

department_ids

integer[]

[] (for assign mode none/all/...)

Updated target departments for the overwrite.

All keys are optional for Update.

Example Request

Example Response

Delete

Delete an ActionOverwrite.

Definition

DELETE /api/action-overwrites/{actionOverwrite}

Example Request

Example Response

Last updated