I am trying to assign a user to Contacts/Leads using set_relationship in REST API v4_1. I am new to sugar can anyone please help with an example or guide me.
You don't need to use set relationship while setting assigned user to lead. use mapping like you have used for first_name and last_name etc
like use name_value with name="assigned_user_id" and value=User ID which need to be set.
Thanks Vaishali that worked.
Retrieving data ...