DAML Json API using postmann

i have an embedded structure for my data model like in the screenshot.Screenshot from 2021-08-27 11-22-49

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:

Can you show us the definition of the types you referenced in particular TestCenter, ServiceResult and Supply?

Yes you can view that in above screenshot. @cocreature

You have a typo in your JSON :organiztionID should be organizationID.

1 Like