I need to add emails to contacts. But I wasn't able to find out how to do it in a convenient way.
Now when I want to add an email address to a contact, I have to call three endpoints.
1 - I need to call POST /EmailAddresses to get the email address's ID.
2 - I need to call GET /Contacts/<id> to get email addresses already attached to the contact to use them in PUT so they won't get deleted.
and finally 3 - PUT /Contacts with the email array containing all email addresses along with the new one.
This seems a little bit odd to do just to add an email address to a contact. Isn't there something simpler?
Something like /POST /Contacts/link/emailAddresses or whatever I may be missing?
Thanks