Go to documentation repository
Documentation for Axxon Next 4.4.6. Documentation for other versions of Axxon Next is available too.
On this page:
Get list of all macros
POST http://IP-address:port/prefix/grpc
Request body:
{ "method":"axxonsoft.bl.logic.LogicService.ListMacros", "data": { "view": "VIEW_MODE_FULL" } }
Note
VIEW_MODE_FULL - complete information;
VIEW_MODE_STRIPPED - only basic information about macros without the launch and operation conditions.
Get complete information on one/several macros
{ "method":"axxonsoft.bl.logic.LogicService.BatchGetMacros", "data":{ "macros_ids" : ["cfd41b18-c983-4a48-aaa1-ca7e666e6e49"] } }
Create/Remove/Change macro
Attention!
Requests for creating and changing a macro should contain its entire structure.
Creating:
{ "method":"axxonsoft.bl.logic.LogicService.ChangeMacros", "data":{ "added_macros" :{ "guid": "9cd9be6c-99e7-47a2-9e2f-03463d30a99f", "name": "sike", "mode": { "enabled": true, "user_role": "", "is_add_to_menu": false, "continuous": {} }, "conditions": {}, "rules": {} } } }
Changing:
{ "method":"axxonsoft.bl.logic.LogicService.ChangeMacros", "data":{ "modified_macros" : { "guid": "9cd9be6c-99e7-47a2-9e2f-03463d30a99f", "name": "sike2", "mode": { "enabled": true, "user_role": "", "is_add_to_menu": false, "continuous": {} }, "conditions": {}, "rules": {} } } }
Removing:
{ "method":"axxonsoft.bl.logic.LogicService.ChangeMacros", "data":{ "removed_macros" : ["cfd41b18-c983-4a48-aaa1-ca7e666e6e49"] } }
Launch a macro
{ "method":"axxonsoft.bl.logic.LogicService.LaunchMacro", "data":{ "macro_id" : "caef76f0-37e9-43b0-aba6-c2a2f32ccd2f" } }
Examples
Get information on automatic rule
Response:- Create a macro.
Overview
Content Tools