updating the api example to use the mesh terminology