In my req I have to create a Contact and associate it with web role, with two web api call I'm able to achieve it,
For Creating Contact:
STEP 1
api/data/v9.1/contacts
{
"lastname" : "asdf test with role 3",
"emailaddress1": "asdf@asdf"
}
and then I'm associating Contact rec with existing webrole
STEP 2
api/data/v9.1/contacts(New record guid)/adx_webrole_contact/$ref
{
"@odata.id":"---/api/data/v9.1/adx_webroles(webroleguid)"
}
It seems they have N:N relationship
Can we combine both call like in single webapi call