Hi
I am getting the below error while trying to create the record using javascript client library method “client.items.create”
422 INVALID_TYPE (details: {})
I debugged the code and checked the request body. It contains the below value, and it looks fine as well.
{“data”:{“type”:“item”,“attributes”:{“title”:“Leave management System”},“relationships”:{“item_type”:{“data”:{“type”:“item_type”,“id”:“video_presentation”}}}}}
Please help to resolve this issue.