register api with fields ok