API docs inconsistency

https://api.cloudflare.com/#stream-live-inputs-list-live-inputs
https://developers.cloudflare.com/api/operations/stream-live-inputs-list-live-inputs

the result object is supposed to contain the streams inside a liveInputs object like this:
"result": {
    "liveInputs": [
      {
        "created": "2014-01-02T02:20:00Z",
        "meta": {
          "name": "test stream 1"
        },
        "modified": "2014-01-02T02:20:00Z",
        "uid": "66be4bf738797e01e1fca35a7bdecdcd"
      }
    ],
    "range": 1000,
    "total": 35586
  },

but it's returning this
result: [
    {
      uid: '.....',
      created: '2022-11-19T03:24:59.735646Z',
      modified: '2022-11-19T03:24:59.735646Z',
      meta: [Object]
    },
    {
      uid: '.....',
      created: '2022-11-06T18:52:49.40392Z',
      modified: '2022-11-19T03:24:43.4065Z',
      meta: [Object]
    },
    {
      uid: '.....',
      created: '2022-11-05T03:24:40.221375Z',
      modified: '2022-11-27T21:42:54.6921Z',
      meta: [Object]
    },
    {
      uid: '.....',
      created: '2022-11-05T02:40:30.22711Z',
      modified: '2022-11-27T21:46:56.792541Z',
      meta: [Object]
    }
  ],

the inputs are being dumped directly on result instead of the subkey
Interact with Cloudflare's products and services via the Cloudflare API
Was this page helpful?