API documentation
Method list
Test your request
Changelog


addAutomaticActionCustomEvent
Creates a new custom event (personal trigger) or updates an existing one if custom_event_id is provided.


Input parameters
typetextType of automatic action
custom_event_idintCustom event ID (optional, for updating existing event)
namevarchar(50)Custom event name (max 50 characters)
descriptionvarchar(1000)Custom event description (max 1000 characters)
buttonarrayButton configuration
| - 0
| - 1
| - 2
| - 3
| - 4
keyboard_shortcuttextKeyboard shortcut (e.g. Ctrl+U)
barcode_enabledboolEnable barcode trigger



Output data
The method returns the data in JSON format.
statusvarchar(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_idintCreated/updated custom event ID



Sample
Input data:
Output data:
A sample request in PHP: