1 2 Previous Next 18 Replies Latest reply on Aug 16, 2018 8:53 PM by Satrughan Mahato

    API REST - ServiceRequest

    RemedyAdmin SD

      Good afternoon;

       

      I need to create an SR through the REST API.

       

      In the page he says:

       

      Example request body

      {

        "Fields": [

          {

            "Name": "requestDefinitionId",

            "Value": "a3290000000Cmg9AAC"

          }

        ],

        "Answers": [

          {

            "QuestionId": "a3290000000Cmg9AAC",

            "Values": [ "test" ]

          }

        ]

      }

      Example response body

      {

          "Success" : "true"

          "ErrorCode" : "",

          "ErrorMessage" : ""

          "Result" : {

              "Id": "a2O90000000PSaFEAW",

              "Number": "0005674"

          }

      }

       

      But when I fill in the data and do the POST, it throws me:

       

      {

          "Success": false,

          "Result": null,

          "ErrorMessage": "Attempt to de-reference a null object",

          "ErrorCode": null

      }

        1 2 Previous Next