To update a contact call ->update($data) and pass in the id of the contact and an array of details to be changed.
To see all contact properties look at https://docs.microsoft.com/en-us/graph/api/resources/contact?view=graph-rest-1.0
In this example, only the email address will be changed
$data = [ 'emailAddresses' => [ [ 'address' => 'firstname.lastname@example.org', 'name' => 'John Agent' ] ] ]; MsGraphAdmin::contacts()->userid($userId)->update($id, $data)
Help support the blog so that I can continue creating new content!
Subscribe and get my books and product announcements.