addAutomaticActionCustomEvent
Creates a new custom event (personal trigger) or updates an existing one if custom_event_id is provided.
Input parameters
Output data:
A sample request in PHP:
| type | text | Type of automatic action |
| custom_event_id | int | Custom event ID (optional, for updating existing event) |
| name | varchar(50) | Custom event name (max 50 characters) |
| description | varchar(1000) | Custom event description (max 1000 characters) |
| button | array | Button configuration |
| | - 0 | ||
| | - 1 | ||
| | - 2 | ||
| | - 3 | ||
| | - 4 | ||
| keyboard_shortcut | text | Keyboard shortcut (e.g. Ctrl+U) |
| barcode_enabled | bool | Enable barcode trigger |
Output data
The method returns the data in JSON format.
| status | varchar(30) | SUCCESS - request executed correctly ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code |
| custom_event_id | int | Created/updated custom event ID |
Sample
Input data:Output data:
A sample request in PHP: