I am not able to provide a key to Post API which is validated in domain model

0
I am getting one error during POST API the one attribute data validation error but there is only validation which is require and when i remove that required validation from the data base ,Then API works      Error :  { "error": { "code": "400", "message": "Error parsing JSON. Data validation failed for attribute 'MyFirstModule.RepairingFacilities.Name' Error parsing JSON. Data validation failed for attribute 'MyFirstModule.RepairingFacilities.Name'" } }
asked
3 answers
0

PostAPI error 3.png

This is only this validation rule is applied on the attribute Name PostAPI error.png 

Here This is what i am posting  

answered
0

PostAPI error 4.png

Import mapping and in next picture i provide you the map attributes

PostAPI error 5.png

answered
0

If you set the log level of the REST Consume lognode to TRACE, this will record the contents of requests and responses. Can you enable this and try again. Check the log after it fails. I suspect the Name field may not be set.

 

Good luck!

answered