Skip to content
CCPEDIAby Unity Nodes
App Development

DAML Json API using postmann

4 posts332 views1 likesLast activity Aug 2021

  1. Bilal_AhmadOP

    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:

  2. cocreature

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

  3. Bilal_Ahmad

    Yes you can view that in above screenshot. @cocreature

  4. cocreature 1

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