Skip to content

bad request when adding a child to a parent and child has no reference to parent #60

Description

@abstratt

Note the undefined link to parent. Note also the request was made without a parent as context:

POST http://localhost/services/api-v2/demo-cloudfier-apps-auto-crm/entities/autocrm.Oportunidade/instances/

{
  "values":{
    "data":"2017-12-21",
    "interesse":"Venda"
  },
  "links":{
    "undefined":{
      "objectId":"1",
      "typeRef":{
        "entityNamespace":"autocrm",
        "kind":"Entity",
        "typeName":"Contato",
        "fullName":"autocrm.Contato"
      }
    }
  },
  "typeRef":{
    "entityNamespace":"autocrm",
    "typeName":"Oportunidade"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions