workmail_update_resource function

Updates data for the resource