REST API - getting error - Method failed: (/updateIncident) with code: 400

Shivani29
Mega Guru

Hi All,

I am new to Integrations. I have created an Outbound rest message with HTTP Method PUT but getting error code:

Method failed: (/updateIncident) with code: 400
and response: [ISS.0086.9249] Missing Parameter: document

I have checked the connectivity through Postman as well and it is working fine. 
Checked Postman connectivity at 3rd party end and that is also fine. I am able to receive the data from third party but not able to send the data. Below are the snapshots for Rest Message and Business rule:

Rest Message:

find_real_file.png

find_real_file.png

Business Rule:

find_real_file.png

Kindly let me know where and what I am doing wrong. In Dev environment it is working fine.

Rgds,
Shivani

1 ACCEPTED SOLUTION

can you show me the snapshot of http request form section? n compare it with your dev. are you missing some headers

View solution in original post

19 REPLIES 19

Ravi9
ServiceNow Employee
ServiceNow Employee

how did you get this request body ? did your third party admin confirmed this request body ? the error is clearly saying that the request package u r sending is incorrect ! 

Hi Ravi,

 

Yes, it was the ask from 3rd party and the same thing is working in DEV instance.

Rgds,
Shivani

Anil Lande
Kilo Patron

Hi,

You don't need to set set Endpoint explicitly as you have already configured in in Rest Message.

As you have mentioned it is working in Dev then please check the endpoints and body in DEV.

Also can you please share postman configuration? what was endpoint and body you were using there?

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Hi Anil,

Thanks for reply. Yes everything is same in DEV. In Body I am giving json. Below is the postman configuration:

find_real_file.png