REST API payload format error with 500 response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 12:27 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 12:43 AM
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
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.