The CreatorCon Call for Content is officially open! Get started here.

REST API payload format error with 500 response

IVB2020
Kilo Contributor

Hi all,

I have created an integration definition with the script include where it calls to action and returns payload, and this integration definition is used in a flow. 

 

When I test the flow with RITM it returns error 500 saying "Method failed: (/v1/device-type) with code: 500" I have checked the endpoint URL and everything seems right. The only issue might be the payload format. Currently this is the payload format

{
    "id": "testDeviceType102",
    "friendlyName": "friendlyName",
    "description": "description",
    "manufacturer": "Test",
    "type": "General purpose",
    "deviceClass": "CLASS_A",
    "associatedphysicalDeviceType": "tektelicLns"
}

 

Does anyone know what might be the issue with the format? 

1 REPLY 1

Michael de Boer
Giga Guru

Did you test the integration with the REST API Explorer?

Here can past the payload and see if something if wrong.
Also check the system log during the test. Maybe that contains some more information.

Regards,
Michael

Regards,
Michael

Please mark the suggestion as helpful/like, if you find it useful to you or others who wants to refer similar content.
Please mark the solution as correct, if the answer provided has resolved your query.