This topic contains 4 replies, has 2 voices, and was last updated by And 6 years, 7 months ago.
- Topic
Hello, OroCRM team.
I have some issue with saving of relationship data like described below:Request body:
12345678910111213141516171819{"data": {"type": "contacts","attributes": {"firstName": "Jerry","lastName": "Coleman","primaryPhone": "585-255-1127","primaryEmail": "JerryAColeman@test.com"},"relationships": {"owner": {"data": {"type": "users","id": "1"}}}}}After I have posted it to {orocrm_host}/api/contacts I got an error ( response code 400):
1234567[{"title": "has contact information constraint","detail": "At least one of the fields First name, Last name, Emails or Phones must be defined."}, {"title": "extra fields constraint","detail": "This form should not contain extra fields: \\data\\"}]After I have posted only attributes block (firstName, lastName…. etc) data saved successfully. But I need to save another relationship data with the general info like described in official documentation.
Help me, please, with this issue. Spent a lot of time :(
Thank you in advance!Regards,
Andrii
The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.