Question

API Syntax to look for job(s) in the last 1 hour

  • 2 April 2024
  • 0 replies
  • 14 views

Badge +1

Below is the Body syntax of an API call for Bot Execution Orchestration (v3/activity/list) to return Completed jobs with StartDateTime greater than 3/23/24 17:43:53.373733600. Is it possible to write similar to return Completed jobs with StartDateTime greater than one hour ago (current time - 1 hour)? Could someone share sample syntax for that?

{

  "filter": {

    "operator":"and",

    "operands":[

        {

            "operator": "eq",

            "value": "COMPLETED",

            "field": "status"

        },

        {

            "operator": "gt",

            "value": "2024-03-23T17:43:53.373733600Z",

            "field": "startDateTime"

        }

      ]

  },

  "sort": [

    {

      "field": "startDateTime",

      "direction": "desc"

    }

  ],

  "page": {

    "offset": 0,

    "length": 10

  }

}


0 replies

Be the first to reply!

Reply