[WebQuery] Multiple Parameter Sets

To run commands that take multiple sets of parameters on the WebQuery interface you need to POST them to the WebQuery port. Basically instead of sending the individual parameters once, you instead send a JSON array of objects where each object contains the individual set of parameters that you would send.

Examples

To run a command like servergroupaddperm and set multiple permissions at the same time the payload would look something like this:

[
  {
    "sgid": "7",
    "permsid": "b_virtualserver_modify_name",
    "permvalue": "1",
    "permskip": "0",
    "permnegated": "0"
  },
  {
    "permsid": "b_virtualserver_modify_welcomemessage",
    "permvalue": "1",
    "permskip": "0",
    "permnegated": "0"
  },
  {
    "permsid": "b_virtualserver_modify_reserved_slots",
    "permvalue": "1",
    "permskip": "0",
    "permnegated": "0"
  }
]

For clientinfo for example, the payload would look like this:

[
  {
    "clid": "1"
  },
  {
    "clid": "2"
  }
]
6 Likes