/api/executeEventAction

Answered

Comments

5 comments

  • Avatar
    Andrey Terentyev

    Hello Marek,

    The method executeEventAction was published and became available by mistake. It should not be used. This is fixed in v4.1.

    Please, could you give explain your objective? What is the expected result?

    I would recommend you a solution.

    0
    Comment actions Permalink
  • Avatar
    Marek Wieckowski

    Hi Andrey,

    Thanks for your response.

    We are developing an integration to the Nx Witness VMS. We want to be able to trigger/execute events/actions/rules from the integration on the VMS. We are interested in triggering a rule, enabling camera overlay and start recording on camera. What are the best HTTP api calls to achieve that?

    Thanks in advance

    0
    Comment actions Permalink
  • Avatar
    Nx Support

    Marek, in this case, you need to send Generic Event to the system and configure rules for that Generic  Event to execute required actions.

    0
    Comment actions Permalink
  • Avatar
    Marek Wieckowski

    Which HTTP api is the most suitable?

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Hi Marek,

    There general schema is

    1. Create an Event Rule for "Generic Event" to perform "Do HTTP Request" action.

    - You can configure the rule via Nx Desktop client. Please, read built-in help.

    - You can create the rule via calling saveEventRule API

    2. Trigger "Generic Event" via api/createEvent

    Here is a post worth reading, which describes the scenario in greater detail.

    https://support.networkoptix.com/hc/en-us/community/posts/360042988034/comments/360011183593

    0
    Comment actions Permalink

Please sign in to leave a comment.