Skip to content
Discussions/App Development/DAML Json API using postmannForum ↗

DAML Json API using postmann

App Development4 posts316 views1 likesLast activity Aug 2021
BI
Bilal_AhmadOP
Aug 2021

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:

CO
cocreature
Aug 2021

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

BI
Bilal_Ahmad
Aug 2021

Yes you can view that in above screenshot. @cocreature

CO
cocreature
Aug 2021

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

← Back to Discussions