Legacy Dev Forum Posts

 View Only

Sign Up

Input Contract Values for Aggregates Query

  • 1.  Input Contract Values for Aggregates Query

    Posted 06-05-2025 18:41

    dmthames | 2018-12-27 14:05:50 UTC | #1

    Happy Holidays!

    I'm trying to come up with a security mechanism that will check an inbound ani for excessive activity in given time frame (say, ten calls from same ani in the last thirty minutes, something like that). This is meant to be an anti-hacking or harassing mechanism to prevent callers from getting to other more sensitive parts of the call flow where data can be retrieved.

    I have the query built in api explorer and it works, and have a purecloud data action configured with hard values for the interval, metric (tIvr) and ani / direction dimensions, but struggling on how to get the inputs set in the data action input contract so that they can be dynamic when the action is called.

    Is there a way to save/export an api explorer or query builder action as a data action that can be used in purecloud integrations?


    dmthames | 2018-12-27 14:24:18 UTC | #2

    Gaaah... my MO is to stare at something for three days, then post a question here about it in frustration, then figure it out thirty seconds later.

    Duh:

    \"predicates\": [\n {\n \"dimension\": \"ani\",\n \"value\":\"${input.ani}\"\n }

    It would be cool if you could create a query in api explorer and export it as a json package though!


    tim.smith | 2019-01-03 19:08:33 UTC | #3

    dmthames, post:2, topic:4253
    It would be cool if you could create a query in api explorer and export it as a json package though!

    I've created API-4045 to investigate adding this. Sounds like a nice enhancement, though I can't promise it'll get scheduled in the short term.


    tim.smith | 2019-01-03 20:06:21 UTC | #4

    dmthames, post:2, topic:4253
    my MO is to stare at something for three days, then post a question here about it in frustration, then figure it out thirty seconds later.

    No worries. It's science! :slight_smile:


    system | 2019-02-03 20:06:22 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 4253