This topic contains 2 replies, has 2 voices, and was last updated by Leandro Banchio 7 years, 2 months ago.
- Topic
Hi!
I’m playing with OroCrm. I am currently trying to create a new contact with the name and email. Unfortunately I was unable to create the correct request.
This is the body of the request
Request URL
1POST /api/contactsRequest body
12345678910111213141516171819202122232425262728293031323334353637383940{"data":{"type":"contacts","attributes":{"firstName":"Elvis","lastName":"Cocho"},"relationships":{"owner":{"data":{"type":"users","id":"1"}},"organization":{"data":{"type":"organizations","id":"1"}},"emails":{"data":[{"type":"contactemails","id":"115459"}]}}},"included":[{"type":"contactemails","id":"115459","attributes":{"email":"someuser@server.com"}}]}Error :(
123456789101112{"errors": [{"status": "400","title": "form constraint","detail": "This value is not valid.","source": {"pointer": "/data/relationships/emails/data"}}]}I tried many things but I can’t find the solution
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.