Skip to content

Conversation

@droorda
Copy link

@droorda droorda commented Apr 15, 2025

Correct Format of Json object when submitting multiple GUID's

The Call allows Multiple GUIDs to be sent in a single call [guid[]]$GUID
Currently when Multiple are passed the Created Json looks like

[
  [
    "All Machines"
  ],
  [
    {
      "EventType": 21,
      "SessionID": "719a6448-8713-447e-ad8d-47cbb504a2d5 3ad19bde-40da-4026-a5f7-82aa3bddad8b"
    }
  ]
]

which puts multiple GUIDs under a single session ID

This change creates JSON like
[["All Machines"],[{"EventType":21,"SessionID":"719a6448-8713-447e-ad8d-47cbb504a2d5"},{"EventType":21,"SessionID":"3ad19bde-40da-4026-a5f7-82aa3bddad8b"}]]
which matches the calls from the web client

Expanded for readability

[
  [
    "All Machines"
  ],
  [
    {
      "EventType":21,
      "SessionID":"719a6448-8713-447e-ad8d-47cbb504a2d5"
    },
    {
      "EventType":21,
      "SessionID":"3ad19bde-40da-4026-a5f7-82aa3bddad8b"
    }
  ]
]

droorda added 2 commits April 15, 2025 14:10
Correct Format of Json object when submitting multiple GUID's
Line Missed with initial Push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant