update api for contacts