0 Replies Latest reply: Aug 23, 2017 7:13 AM by Nikolay Chapkin RSS

    Howto set NPrining report filters trough REST Api?

    Nikolay Chapkin

      Hi,

      I try to get report from NPrinting. I send POST OnDemandRequest and then get it by GET-call OnDemandRequestResult.

      Another task, I need to filter my report by some values (eg - quarter, year etc.). I try send PUT Filter request but get error - 400 with a message "Request is malformed". What I'm doing wrong?

       

      This is JSON of the PUT-filter request:

      {

        "id": "6c567bc4-1378-44c2-de4e-ff45673df23c",

        "enabled": "True",

        "fields": [{

        "name": "flag",

        "overrideValues": "True",

        "values": []

        }, {

        "name": "Test",

        "overrideValues": "True",

        "values": [{

        "value": "3",

        "type": "number"

        }, {

        "value": "4",

        "type": "number"

        }

        ]

        }

        ]

      }