DAML Json API using postmann
App Development4 posts316 views1 likesLast activity Aug 2021
BI
Bilal_AhmadOP
Aug 2021i have an embedded structure for my data model like in the screenshot.
When i use the JSON api to create record for this data model i get an error for the embedded fields.
“JsonError: spray.json.DeserializationException: Can’t read as DamlLfRecord 6d43b4207afb31499b1f40d235576a921fef77ec2f17c361f42ba78ce3e2ec51:Certificate:TestCenter, missing field ‘organizationID’”
Postmann screenshot:
CO
cocreature
Aug 2021Can you show us the definition of the types you referenced in particular TestCenter, ServiceResult and Supply?
BI
Bilal_Ahmad
Aug 2021Yes you can view that in above screenshot. @cocreature
CO
cocreature
Aug 2021You have a typo in your JSON :organiztionID should be organizationID.

