Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    neha agarwal
    running a query in Postman but getting error
    Topic posted June 3, 2019 by neha agarwal, tagged REST 
    26 Views
    Title:
    running a query in Postman but getting error
    Summary:
    i am trying to generate a JSON file for the below query but not able to , can someone suggest what is wrong with my request, i have looped filter used, hope i have set it correct
    Content:

    Request:

    {

        "id": 100443,

        "filters": [

            {

                "name": "Survey",

                 "values":{

                    "EnergyAustralia":{

                   "Email Surveys":

                   [

                    "Billing Episode Survey- Email",

                    "Billing Episode Survey- Email_June2017",

                    "Episode -Power of Choice",

                    "First Bill Survey",

                    "Move Home",

                    "Transactional Survey",

                    "Transactional Survey-Email-V1.1"

                ]

                                                    }

                                                    }

            },

            {

                "name": "Survey Completed Date",

                "values": [

                   "2018-09-01T12:00:00.000Z",

                    "2018-09-02T12:00:00.000Z"

                ]

            }

        ]

    }

     

    Response:

     

    {

        "type": "https://energyaustralia--tst.custhelp.com/services/rest/connect/exceptions/OSC-CREST-00006",

        "title": "An attempt to write a resource failed",

        "status": 400,

        "detail": "A problem setting a property was encountered: Invalid ObjectType: 6",

        "instance": "https://energyaustralia--tst.custhelp.com/services/rest/connect/v1.4/analyticsReportResults",

        "o:errorCode": "OSC-CREST-00006"

    }